Skip to content

Commit cd32e6c

Browse files
ldesrochesWolfram Sang
authored andcommitted
i2c: at91: fix compilation warning
This patch fixes the following warning: drivers/i2c/busses/i2c-at91.c: In function ‘at91_twi_get_driver_data’: drivers/i2c/busses/i2c-at91.c:411:3: warning: return discards ‘const’ qualifier from pointer target type [enabled by default] Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
1 parent 8f41405 commit cd32e6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-at91.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ static struct at91_twi_pdata * __devinit at91_twi_get_driver_data(
413413
match = of_match_node(atmel_twi_dt_ids, pdev->dev.of_node);
414414
if (!match)
415415
return NULL;
416-
return match->data;
416+
return (struct at91_twi_pdata *)match->data;
417417
}
418418
return (struct at91_twi_pdata *) platform_get_device_id(pdev)->driver_data;
419419
}

0 commit comments

Comments
 (0)