Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed6ccdc6 authored by Jingoo Han's avatar Jingoo Han Committed by Lee Jones
Browse files

mfd: max8997: Cast void pointer to data of max8997_pmic_dt_match



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: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent a9c4055d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -51,7 +51,7 @@ static struct mfd_cell max8997_devs[] = {


#ifdef CONFIG_OF
#ifdef CONFIG_OF
static struct of_device_id max8997_pmic_dt_match[] = {
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
#endif