Commit 23c537ae authored by Rodrigo Siqueira's avatar Rodrigo Siqueira Committed by Jonathan Cameron

staging:iio:ad2s1210: Remove end of line with '['

This patch fixes the checkpatch.pl check:

iio/resolver/ad2s1210.c:202: CHECK: Lines should not end with a '['
Signed-off-by: default avatarRodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 6e2e828d
...@@ -165,9 +165,10 @@ int ad2s1210_update_frequency_control_word(struct ad2s1210_state *st) ...@@ -165,9 +165,10 @@ int ad2s1210_update_frequency_control_word(struct ad2s1210_state *st)
static unsigned char ad2s1210_read_resolution_pin(struct ad2s1210_state *st) static unsigned char ad2s1210_read_resolution_pin(struct ad2s1210_state *st)
{ {
return ad2s1210_resolution_value[ int resolution = (gpio_get_value(st->pdata->res[0]) << 1) |
(gpio_get_value(st->pdata->res[0]) << 1) | gpio_get_value(st->pdata->res[1]);
gpio_get_value(st->pdata->res[1])];
return ad2s1210_resolution_value[resolution];
} }
static const int ad2s1210_res_pins[4][2] = { static const int ad2s1210_res_pins[4][2] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment