Skip to content

Commit daf3fac

Browse files
Uwe Kleine-Königthierryreding
authored andcommitted
pwm: sifive: 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 454a8f5 commit daf3fac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pwm/pwm-sifive.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ struct pwm_sifive_ddata {
5151
};
5252

5353
static inline
54-
struct pwm_sifive_ddata *pwm_sifive_chip_to_ddata(struct pwm_chip *c)
54+
struct pwm_sifive_ddata *pwm_sifive_chip_to_ddata(struct pwm_chip *chip)
5555
{
56-
return container_of(c, struct pwm_sifive_ddata, chip);
56+
return container_of(chip, struct pwm_sifive_ddata, chip);
5757
}
5858

5959
static int pwm_sifive_request(struct pwm_chip *chip, struct pwm_device *pwm)

0 commit comments

Comments
 (0)