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 <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
1 parent 1425c40 commit 454a8f5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)