lkml.org 
[lkml]   [2013]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] mfd: max8997: cast void pointer to data of max8997_pmic_dt_match
    Date
    Casting (void *) data of max8997_pmic_dt_match is necessary,
    because variable 'data' of struct 'of_device_id' is defined as
    'const void *data'. Thus, pointer should be used instead of value.

    Signed-off-by: Jingoo Han <jg1.han@samsung.com>
    ---
    drivers/mfd/max8997.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/mfd/max8997.c b/drivers/mfd/max8997.c
    index 1471405..e6d668a 100644
    --- a/drivers/mfd/max8997.c
    +++ b/drivers/mfd/max8997.c
    @@ -51,7 +51,7 @@ static struct mfd_cell max8997_devs[] = {

    #ifdef CONFIG_OF
    static struct of_device_id max8997_pmic_dt_match[] = {
    - { .compatible = "maxim,max8997-pmic", .data = TYPE_MAX8997 },
    + { .compatible = "maxim,max8997-pmic", .data = (void *)TYPE_MAX8997 },
    {},
    };
    #endif
    --
    1.7.10.4



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