lis3: change exported function to use passed parameter
Change exported functions to use the device given as parameter instead of the global one. Signed-off-by: Ilkka Koskinen <ilkka.koskinen@nokia.com> Signed-off-by: Éric Piel <eric.piel@tremplin-utc.net> Cc: Matthew Garrett <mjg@redhat.com> Cc: Witold Pilat <witold.pilat@gmail.com> Cc: Lyall Pearce <lyall.pearce@hp.com> Cc: Malte Starostik <m-starostik@versanet.de> Cc: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com> Cc: Christian Lamparter <chunkeey@googlemail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
d7f81d4299
commit
e1e5687d75
@@ -83,7 +83,7 @@ static int __devinit lis302dl_spi_probe(struct spi_device *spi)
|
||||
static int __devexit lis302dl_spi_remove(struct spi_device *spi)
|
||||
{
|
||||
struct lis3lv02d *lis3 = spi_get_drvdata(spi);
|
||||
lis3lv02d_joystick_disable();
|
||||
lis3lv02d_joystick_disable(lis3);
|
||||
lis3lv02d_poweroff(lis3);
|
||||
|
||||
return lis3lv02d_remove_fs(&lis3_dev);
|
||||
|
Reference in New Issue
Block a user