lkml.org 
[lkml]   [2013]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH V2 3/6] backlight: ld9040: Staticize local variable gamma_table
    Date
    Fix the following sparse warnings:

    drivers/video/backlight/ld9040_gamma.h:172:3: warning: symbol 'gamma_table' was not declared. Should it be static?

    Signed-off-by: Jingoo Han <jg1.han@samsung.com>
    ---
    drivers/video/backlight/ld9040_gamma.h | 4 +++-
    1 file changed, 3 insertions(+), 1 deletion(-)

    diff --git a/drivers/video/backlight/ld9040_gamma.h b/drivers/video/backlight/ld9040_gamma.h
    index 038d9c8..c5e586d 100644
    --- a/drivers/video/backlight/ld9040_gamma.h
    +++ b/drivers/video/backlight/ld9040_gamma.h
    @@ -169,7 +169,9 @@ static const unsigned int ld9040_22_50[] = {

    struct ld9040_gamma {
    unsigned int *gamma_22_table[MAX_GAMMA_LEVEL];
    -} gamma_table = {
    +};
    +
    +static struct ld9040_gamma gamma_table = {
    .gamma_22_table[0] = (unsigned int *)&ld9040_22_50,
    .gamma_22_table[1] = (unsigned int *)&ld9040_22_70,
    .gamma_22_table[2] = (unsigned int *)&ld9040_22_80,
    --
    1.7.10.4



    \
     
     \ /
      Last update: 2013-09-05 07:01    [W:3.584 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site