diff mbox series

[1/8] backlight: lms501kf03: Remove unused const variables

Message ID 20200624145721.2590327-2-lee.jones@linaro.org
State Accepted
Commit 81357f818f3e21963aa7630874bfc941330ef4d4
Headers show
Series [1/8] backlight: lms501kf03: Remove unused const variables | expand

Commit Message

Lee Jones June 24, 2020, 2:57 p.m. UTC
W=1 kernel build reports:

 drivers/video/backlight/lms501kf03.c:96:28: warning: ‘seq_sleep_in’ defined but not used [-Wunused-const-variable=]
 96 | static const unsigned char seq_sleep_in[] = {
 | ^~~~~~~~~~~~
 drivers/video/backlight/lms501kf03.c:92:28: warning: ‘seq_up_dn’ defined but not used [-Wunused-const-variable=]
 92 | static const unsigned char seq_up_dn[] = {
 | ^~~~~~~~~

Either 'seq_sleep_in' nor 'seq_up_dn' have been used since the
driver first landed in 2013.

Cc: <stable@vger.kernel.org>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

---
 drivers/video/backlight/lms501kf03.c | 8 --------
 1 file changed, 8 deletions(-)

-- 
2.25.1

Comments

Daniel Thompson June 25, 2020, 9:24 a.m. UTC | #1
On Wed, Jun 24, 2020 at 03:57:14PM +0100, Lee Jones wrote:
> W=1 kernel build reports:

> 

>  drivers/video/backlight/lms501kf03.c:96:28: warning: ‘seq_sleep_in’ defined but not used [-Wunused-const-variable=]

>  96 | static const unsigned char seq_sleep_in[] = {

>  | ^~~~~~~~~~~~

>  drivers/video/backlight/lms501kf03.c:92:28: warning: ‘seq_up_dn’ defined but not used [-Wunused-const-variable=]

>  92 | static const unsigned char seq_up_dn[] = {

>  | ^~~~~~~~~

> 

> Either 'seq_sleep_in' nor 'seq_up_dn' have been used since the

> driver first landed in 2013.

> 

> Cc: <stable@vger.kernel.org>

> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

> Signed-off-by: Lee Jones <lee.jones@linaro.org>


Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>



> ---

>  drivers/video/backlight/lms501kf03.c | 8 --------

>  1 file changed, 8 deletions(-)

> 

> diff --git a/drivers/video/backlight/lms501kf03.c b/drivers/video/backlight/lms501kf03.c

> index 8ae32e3573c1a..c1bd02bb8b2ee 100644

> --- a/drivers/video/backlight/lms501kf03.c

> +++ b/drivers/video/backlight/lms501kf03.c

> @@ -89,14 +89,6 @@ static const unsigned char seq_rgb_gamma[] = {

>  	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,

>  };

>  

> -static const unsigned char seq_up_dn[] = {

> -	0x36, 0x10,

> -};

> -

> -static const unsigned char seq_sleep_in[] = {

> -	0x10,

> -};

> -

>  static const unsigned char seq_sleep_out[] = {

>  	0x11,

>  };

> -- 

> 2.25.1

>
diff mbox series

Patch

diff --git a/drivers/video/backlight/lms501kf03.c b/drivers/video/backlight/lms501kf03.c
index 8ae32e3573c1a..c1bd02bb8b2ee 100644
--- a/drivers/video/backlight/lms501kf03.c
+++ b/drivers/video/backlight/lms501kf03.c
@@ -89,14 +89,6 @@  static const unsigned char seq_rgb_gamma[] = {
 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 };
 
-static const unsigned char seq_up_dn[] = {
-	0x36, 0x10,
-};
-
-static const unsigned char seq_sleep_in[] = {
-	0x10,
-};
-
 static const unsigned char seq_sleep_out[] = {
 	0x11,
 };