Skip to content

Commit 1e8ece5

Browse files
AxelLinSamuel Ortiz
authored andcommitted
mfd: Fix build error for tps65911-comparator.c
Fix below build error: CC drivers/mfd/tps65911-comparator.o drivers/mfd/tps65911-comparator.c: In function 'tps65911_comparator_probe': drivers/mfd/tps65911-comparator.c:131: error: 'struct tps65910_platform_data' has no member named 'vmbch_threshold' drivers/mfd/tps65911-comparator.c:137: error: 'struct tps65910_platform_data' has no member named 'vmbch2_threshold' make[2]: *** [drivers/mfd/tps65911-comparator.o] Error 1 make[1]: *** [drivers/mfd] Error 2 make: *** [drivers] Error 2 Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
1 parent 8f2df01 commit 1e8ece5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/tps65911-comparator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static DEVICE_ATTR(comp2_threshold, S_IRUGO, comp_threshold_show, NULL);
125125
static __devinit int tps65911_comparator_probe(struct platform_device *pdev)
126126
{
127127
struct tps65910 *tps65910 = dev_get_drvdata(pdev->dev.parent);
128-
struct tps65910_platform_data *pdata = dev_get_platdata(tps65910->dev);
128+
struct tps65910_board *pdata = dev_get_platdata(tps65910->dev);
129129
int ret;
130130

131131
ret = comp_threshold_set(tps65910, COMP1, pdata->vmbch_threshold);

0 commit comments

Comments
 (0)