backlight: atmel-pwm-bl: fix reported brightness
authorJohan Hovold <jhovold@gmail.com>
Tue, 12 Nov 2013 23:09:38 +0000 (15:09 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 3 Jan 2014 04:33:21 +0000 (04:33 +0000)
commit281f5afc26c7d7604685c8c1d686154f3354a5d1
tree6ff2676d0a0bca9f57616b47e5712122eddf557f
parent373dcf178f11e09037edea51478f8340dcb583e3
backlight: atmel-pwm-bl: fix reported brightness

commit 185d91442550110db67a7dc794a32efcea455a36 upstream.

The driver supports 16-bit brightness values, but the value returned
from get_brightness was truncated to eight bits.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Cc: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/video/backlight/atmel-pwm-bl.c