Skip to content

Commit 454a8f5

Browse files
Uwe Kleine-Königthierryreding
authored andcommitted
pwm: rockchip: Consistently name pwm_chip variables "chip"
Most variables holding a pointer to a pwm_chip are called "chip" which is also the usual name in most other PWM drivers. Rename the single variable that have a different name to be called "chip", too, for consistency. Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 1425c40 commit 454a8f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pwm/pwm-rockchip.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ struct rockchip_pwm_data {
5252
u32 enable_conf;
5353
};
5454

55-
static inline struct rockchip_pwm_chip *to_rockchip_pwm_chip(struct pwm_chip *c)
55+
static inline struct rockchip_pwm_chip *to_rockchip_pwm_chip(struct pwm_chip *chip)
5656
{
57-
return container_of(c, struct rockchip_pwm_chip, chip);
57+
return container_of(chip, struct rockchip_pwm_chip, chip);
5858
}
5959

6060
static int rockchip_pwm_get_state(struct pwm_chip *chip,

0 commit comments

Comments
 (0)