Skip to content

Commit

Permalink
sensor/sx9500: Make driver_api structure const.
Browse files Browse the repository at this point in the history
Change-Id: I96c17c776f37a63dd309c2cd4208239673033c14
Signed-off-by: Marcus Shawcroft <[email protected]>
  • Loading branch information
mshawcroft authored and Anas Nashif committed Oct 25, 2016
1 parent b230c98 commit 593c262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/sensor/sx9500/sx9500.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static int sx9500_channel_get(struct device *dev,
return 0;
}

static struct sensor_driver_api sx9500_api_funcs = {
static const struct sensor_driver_api sx9500_api_funcs = {
.sample_fetch = sx9500_sample_fetch,
.channel_get = sx9500_channel_get,
#ifdef CONFIG_SX9500_TRIGGER
Expand Down

0 comments on commit 593c262

Please sign in to comment.