diff options
author | Peter Rosin <peda@axentia.se> | 2016-12-02 13:51:15 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-12-07 17:27:02 +0300 |
commit | c9d26f1aab007a7083f509b4be263bc904ddb0d3 (patch) | |
tree | 8af24784d668a7b14ea894f0c6ad83bfbd075e80 /drivers | |
parent | 6c4ef627d8c458fe8880ccd2e2cd581de0d9b42f (diff) | |
download | linux-c9d26f1aab007a7083f509b4be263bc904ddb0d3.tar.xz |
pinctrl: sx150x: rename 'reg_advance' to 'reg_advanced'
This matches the datasheets and is less confusing since the register
has nothing to with advancing anything.
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pinctrl/pinctrl-sx150x.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/pinctrl/pinctrl-sx150x.c b/drivers/pinctrl/pinctrl-sx150x.c index a121819ffc92..37b8737e61a9 100644 --- a/drivers/pinctrl/pinctrl-sx150x.c +++ b/drivers/pinctrl/pinctrl-sx150x.c @@ -60,7 +60,7 @@ struct sx150x_123_pri { u8 reg_pld_table2; u8 reg_pld_table3; u8 reg_pld_table4; - u8 reg_advance; + u8 reg_advanced; }; struct sx150x_456_pri { @@ -70,7 +70,7 @@ struct sx150x_456_pri { u8 reg_pld_table2; u8 reg_pld_table3; u8 reg_pld_table4; - u8 reg_advance; + u8 reg_advanced; }; struct sx150x_789_pri { @@ -170,7 +170,7 @@ static const struct sx150x_device_data sx1501q_device_data = { .reg_pld_mode = 0x10, .reg_pld_table0 = 0x11, .reg_pld_table2 = 0x13, - .reg_advance = 0xad, + .reg_advanced = 0xad, }, .ngpios = 4, .pins = sx150x_4_pins, @@ -193,7 +193,7 @@ static const struct sx150x_device_data sx1502q_device_data = { .reg_pld_table2 = 0x13, .reg_pld_table3 = 0x14, .reg_pld_table4 = 0x15, - .reg_advance = 0xad, + .reg_advanced = 0xad, }, .ngpios = 8, .pins = sx150x_8_pins, @@ -216,7 +216,7 @@ static const struct sx150x_device_data sx1503q_device_data = { .reg_pld_table2 = 0x26, .reg_pld_table3 = 0x28, .reg_pld_table4 = 0x2a, - .reg_advance = 0xad, + .reg_advanced = 0xad, }, .ngpios = 16, .pins = sx150x_16_pins, @@ -280,7 +280,7 @@ static const struct sx150x_device_data sx1506q_device_data = { .reg_pld_table2 = 0x26, .reg_pld_table3 = 0x28, .reg_pld_table4 = 0x2a, - .reg_advance = 0xad, + .reg_advanced = 0xad, }, .ngpios = 16, .pins = sx150x_16_pins, @@ -900,7 +900,7 @@ static int sx150x_init_misc(struct sx150x_pinctrl *pctl) value = SX150X_789_REG_MISC_AUTOCLEAR_OFF; break; case SX150X_456: - reg = pctl->data->pri.x456.reg_advance; + reg = pctl->data->pri.x456.reg_advanced; value = 0x00; /* @@ -911,7 +911,7 @@ static int sx150x_init_misc(struct sx150x_pinctrl *pctl) return 0; break; case SX150X_123: - reg = pctl->data->pri.x123.reg_advance; + reg = pctl->data->pri.x123.reg_advanced; value = 0x00; break; default: @@ -964,10 +964,10 @@ static int sx150x_regmap_reg_width(struct sx150x_pinctrl *pctl, reg == data->pri.x789.reg_reset)) || (data->model == SX150X_123 && - reg == data->pri.x123.reg_advance) + reg == data->pri.x123.reg_advanced) || (data->model == SX150X_456 && - reg == data->pri.x456.reg_advance)) { + reg == data->pri.x456.reg_advanced)) { return 8; } else { return data->ngpios; |