Skip to content

Commit

Permalink
power: axp288_fuel_gauge: Constify platform_device_id
Browse files Browse the repository at this point in the history
The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
  • Loading branch information
Krzysztof Kozlowski authored and Sebastian Reichel committed May 23, 2015
1 parent 2219a93 commit f1f27a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/axp288_fuel_gauge.c
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ static int axp288_fuel_gauge_probe(struct platform_device *pdev)
return ret;
}

static struct platform_device_id axp288_fg_id_table[] = {
static const struct platform_device_id axp288_fg_id_table[] = {
{ .name = DEV_NAME },
{},
};
Expand Down

0 comments on commit f1f27a4

Please sign in to comment.