diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-02-21 19:43:35 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 20:22:23 -0500 |
commit | 7652c18d5c658a155ec2708c574096ad22d1e8d1 (patch) | |
tree | fa0c341b72fe69f530fd1b67e8cc0bd9e511b43f /drivers/video | |
parent | 8ec47063cc9951f376da696782d826ee0c207052 (diff) |
backlight: s6e63m0: use spi_get_drvdata and spi_set_drvdata
Use the wrapper functions for getting and setting the driver data using
spi_device instead of using dev_{get|set}_drvdata with &spi->dev, so we
can directly pass a struct spi_device
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/backlight/s6e63m0.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/video/backlight/s6e63m0.c b/drivers/video/backlight/s6e63m0.c index 0969a4048007..2126b96ea603 100644 --- a/drivers/video/backlight/s6e63m0.c +++ b/drivers/video/backlight/s6e63m0.c | |||
@@ -793,7 +793,7 @@ static int s6e63m0_probe(struct spi_device *spi) | |||
793 | lcd->power = FB_BLANK_UNBLANK; | 793 | lcd->power = FB_BLANK_UNBLANK; |
794 | } | 794 | } |
795 | 795 | ||
796 | dev_set_drvdata(&spi->dev, lcd); | 796 | spi_set_drvdata(spi, lcd); |
797 | 797 | ||
798 | dev_info(&spi->dev, "s6e63m0 panel driver has been probed.\n"); | 798 | dev_info(&spi->dev, "s6e63m0 panel driver has been probed.\n"); |
799 | 799 | ||
@@ -806,7 +806,7 @@ out_lcd_unregister: | |||
806 | 806 | ||
807 | static int s6e63m0_remove(struct spi_device *spi) | 807 | static int s6e63m0_remove(struct spi_device *spi) |
808 | { | 808 | { |
809 | struct s6e63m0 *lcd = dev_get_drvdata(&spi->dev); | 809 | struct s6e63m0 *lcd = spi_get_drvdata(spi); |
810 | 810 | ||
811 | s6e63m0_power(lcd, FB_BLANK_POWERDOWN); | 811 | s6e63m0_power(lcd, FB_BLANK_POWERDOWN); |
812 | device_remove_file(&spi->dev, &dev_attr_gamma_table); | 812 | device_remove_file(&spi->dev, &dev_attr_gamma_table); |
@@ -820,7 +820,7 @@ static int s6e63m0_remove(struct spi_device *spi) | |||
820 | #if defined(CONFIG_PM) | 820 | #if defined(CONFIG_PM) |
821 | static int s6e63m0_suspend(struct spi_device *spi, pm_message_t mesg) | 821 | static int s6e63m0_suspend(struct spi_device *spi, pm_message_t mesg) |
822 | { | 822 | { |
823 | struct s6e63m0 *lcd = dev_get_drvdata(&spi->dev); | 823 | struct s6e63m0 *lcd = spi_get_drvdata(spi); |
824 | 824 | ||
825 | dev_dbg(&spi->dev, "lcd->power = %d\n", lcd->power); | 825 | dev_dbg(&spi->dev, "lcd->power = %d\n", lcd->power); |
826 | 826 | ||
@@ -833,7 +833,7 @@ static int s6e63m0_suspend(struct spi_device *spi, pm_message_t mesg) | |||
833 | 833 | ||
834 | static int s6e63m0_resume(struct spi_device *spi) | 834 | static int s6e63m0_resume(struct spi_device *spi) |
835 | { | 835 | { |
836 | struct s6e63m0 *lcd = dev_get_drvdata(&spi->dev); | 836 | struct s6e63m0 *lcd = spi_get_drvdata(spi); |
837 | 837 | ||
838 | lcd->power = FB_BLANK_POWERDOWN; | 838 | lcd->power = FB_BLANK_POWERDOWN; |
839 | 839 | ||
@@ -847,7 +847,7 @@ static int s6e63m0_resume(struct spi_device *spi) | |||
847 | /* Power down all displays on reboot, poweroff or halt. */ | 847 | /* Power down all displays on reboot, poweroff or halt. */ |
848 | static void s6e63m0_shutdown(struct spi_device *spi) | 848 | static void s6e63m0_shutdown(struct spi_device *spi) |
849 | { | 849 | { |
850 | struct s6e63m0 *lcd = dev_get_drvdata(&spi->dev); | 850 | struct s6e63m0 *lcd = spi_get_drvdata(spi); |
851 | 851 | ||
852 | s6e63m0_power(lcd, FB_BLANK_POWERDOWN); | 852 | s6e63m0_power(lcd, FB_BLANK_POWERDOWN); |
853 | } | 853 | } |