aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-sifive.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2023-07-14 20:56:21 +0000
committerThierry Reding <[email protected]>2023-07-21 18:23:31 +0000
commitdaf3facb9373fe4d6a06f65e834becb16d40de7e (patch)
tree11dd1876b73e12d9a69ce098008e2aeaf6b08ff3 /drivers/pwm/pwm-sifive.c
parentpwm: rockchip: Consistently name pwm_chip variables "chip" (diff)
downloadkernel-daf3facb9373fe4d6a06f65e834becb16d40de7e.tar.gz
kernel-daf3facb9373fe4d6a06f65e834becb16d40de7e.zip
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]>
Diffstat (limited to 'drivers/pwm/pwm-sifive.c')
-rw-r--r--drivers/pwm/pwm-sifive.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pwm/pwm-sifive.c b/drivers/pwm/pwm-sifive.c
index ae49d67ab2b1..25b9b7d9476a 100644
--- a/drivers/pwm/pwm-sifive.c
+++ b/drivers/pwm/pwm-sifive.c
@@ -51,9 +51,9 @@ struct pwm_sifive_ddata {
};
static inline
-struct pwm_sifive_ddata *pwm_sifive_chip_to_ddata(struct pwm_chip *c)
+struct pwm_sifive_ddata *pwm_sifive_chip_to_ddata(struct pwm_chip *chip)
{
- return container_of(c, struct pwm_sifive_ddata, chip);
+ return container_of(chip, struct pwm_sifive_ddata, chip);
}
static int pwm_sifive_request(struct pwm_chip *chip, struct pwm_device *pwm)