Skip to content

Commit 1663629

Browse files
Uwe Kleine-Königthierryreding
authored andcommitted
staging: greybus: pwm: Consistently name pwm_chip variables "chip"
All function parameters of type pointer to struct pwm_chip in this driver are called chip which is also the usual name of function parameters and local variables in most other PWM drivers. For consistency use the same name for the local variable of that type. Signed-off-by: Uwe Kleine-König <[email protected]> Reviewed-by: Alex Elder <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent bc83fe5 commit 1663629

File tree

1 file changed

+6
-6
lines changed
  • drivers/staging/greybus

1 file changed

+6
-6
lines changed

drivers/staging/greybus/pwm.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ static int gb_pwm_probe(struct gbphy_device *gbphy_dev,
267267
{
268268
struct gb_connection *connection;
269269
struct gb_pwm_chip *pwmc;
270-
struct pwm_chip *pwm;
270+
struct pwm_chip *chip;
271271
int ret;
272272

273273
pwmc = kzalloc(sizeof(*pwmc), GFP_KERNEL);
@@ -295,13 +295,13 @@ static int gb_pwm_probe(struct gbphy_device *gbphy_dev,
295295
if (ret)
296296
goto exit_connection_disable;
297297

298-
pwm = &pwmc->chip;
298+
chip = &pwmc->chip;
299299

300-
pwm->dev = &gbphy_dev->dev;
301-
pwm->ops = &gb_pwm_ops;
302-
pwm->npwm = pwmc->pwm_max + 1;
300+
chip->dev = &gbphy_dev->dev;
301+
chip->ops = &gb_pwm_ops;
302+
chip->npwm = pwmc->pwm_max + 1;
303303

304-
ret = pwmchip_add(pwm);
304+
ret = pwmchip_add(chip);
305305
if (ret) {
306306
dev_err(&gbphy_dev->dev,
307307
"failed to register PWM: %d\n", ret);

0 commit comments

Comments
 (0)