Skip to content

Commit 92f2de2

Browse files
Uwe Kleine-Königthierryreding
authored andcommitted
pwm: crc: 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 51352c0 commit 92f2de2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pwm/pwm-crc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ struct crystalcove_pwm {
3434
struct regmap *regmap;
3535
};
3636

37-
static inline struct crystalcove_pwm *to_crc_pwm(struct pwm_chip *pc)
37+
static inline struct crystalcove_pwm *to_crc_pwm(struct pwm_chip *chip)
3838
{
39-
return container_of(pc, struct crystalcove_pwm, chip);
39+
return container_of(chip, struct crystalcove_pwm, chip);
4040
}
4141

4242
static int crc_pwm_calc_clk_div(int period_ns)

0 commit comments

Comments
 (0)