Skip to content

Commit 04271ce

Browse files
ArvindYadavCsWolfram Sang
authored andcommitted
i2c-cht-wc: constify platform_device_id
platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by <linux/platform_device.h> work with const platform_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent ae64f9b commit 04271ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-cht-wc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ static int cht_wc_i2c_adap_i2c_remove(struct platform_device *pdev)
379379
return 0;
380380
}
381381

382-
static struct platform_device_id cht_wc_i2c_adap_id_table[] = {
382+
static const struct platform_device_id cht_wc_i2c_adap_id_table[] = {
383383
{ .name = "cht_wcove_ext_chgr" },
384384
{},
385385
};

0 commit comments

Comments
 (0)