summaryrefslogtreecommitdiff
path: root/drivers/pwm/pwm-lp3943.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-07-14 22:56:19 +0200
committerThierry Reding <thierry.reding@gmail.com>2023-07-21 20:23:31 +0200
commit1425c40189ebbcfbf59df7fcbe0e6f4716bc1dcc (patch)
treeab46542389fabc1bb905597731802e5a57f2c700 /drivers/pwm/pwm-lp3943.c
parent5996cdf132dad91db596d0bdacf137cbde68dc3c (diff)
downloadlwn-1425c40189ebbcfbf59df7fcbe0e6f4716bc1dcc.tar.gz
lwn-1425c40189ebbcfbf59df7fcbe0e6f4716bc1dcc.zip
pwm: lp3943: 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>
Diffstat (limited to 'drivers/pwm/pwm-lp3943.c')
-rw-r--r--drivers/pwm/pwm-lp3943.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pwm/pwm-lp3943.c b/drivers/pwm/pwm-lp3943.c
index 35675e4058c6..a39411b87e19 100644
--- a/drivers/pwm/pwm-lp3943.c
+++ b/drivers/pwm/pwm-lp3943.c
@@ -24,9 +24,9 @@ struct lp3943_pwm {
struct lp3943_platform_data *pdata;
};
-static inline struct lp3943_pwm *to_lp3943_pwm(struct pwm_chip *_chip)
+static inline struct lp3943_pwm *to_lp3943_pwm(struct pwm_chip *chip)
{
- return container_of(_chip, struct lp3943_pwm, chip);
+ return container_of(chip, struct lp3943_pwm, chip);
}
static struct lp3943_pwm_map *