diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-02-21 19:44:01 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 20:22:25 -0500 |
commit | eeb1ef3b641f078cb1079cec48a8da2bdf449f21 (patch) | |
tree | 283bfbe536b34c249a161c6c69a45b98b7d5be59 /drivers/video | |
parent | c84c383366bcb1025b03a82e5ebcf9f1c645ec68 (diff) |
drivers/video/backlight/s6e63m0.c: report ->gamma_table_count correctly
gamma_table has 3 arrays which each hold MAX_GAMMA_LEVEL pointers to int.
The current code sets ->gamma_table_count to 6 on 64bit arches and to 3 on
32 bit arches. It should be 3 on everything.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Jingoo Han <jg1.han@samsung.com>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/s6e63m0.c b/drivers/video/backlight/s6e63m0.c index 2126b96ea603..9c2677f0ef7d 100644 --- a/drivers/video/backlight/s6e63m0.c +++ b/drivers/video/backlight/s6e63m0.c | |||
@@ -766,7 +766,7 @@ static int s6e63m0_probe(struct spi_device *spi) | |||
766 | * know that. | 766 | * know that. |
767 | */ | 767 | */ |
768 | lcd->gamma_table_count = | 768 | lcd->gamma_table_count = |
769 | sizeof(gamma_table) / (MAX_GAMMA_LEVEL * sizeof(int)); | 769 | sizeof(gamma_table) / (MAX_GAMMA_LEVEL * sizeof(int *)); |
770 | 770 | ||
771 | ret = device_create_file(&(spi->dev), &dev_attr_gamma_mode); | 771 | ret = device_create_file(&(spi->dev), &dev_attr_gamma_mode); |
772 | if (ret < 0) | 772 | if (ret < 0) |