Commit 16636297 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Thierry Reding

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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent bc83fe5c
...@@ -267,7 +267,7 @@ static int gb_pwm_probe(struct gbphy_device *gbphy_dev, ...@@ -267,7 +267,7 @@ static int gb_pwm_probe(struct gbphy_device *gbphy_dev,
{ {
struct gb_connection *connection; struct gb_connection *connection;
struct gb_pwm_chip *pwmc; struct gb_pwm_chip *pwmc;
struct pwm_chip *pwm; struct pwm_chip *chip;
int ret; int ret;
pwmc = kzalloc(sizeof(*pwmc), GFP_KERNEL); pwmc = kzalloc(sizeof(*pwmc), GFP_KERNEL);
...@@ -295,13 +295,13 @@ static int gb_pwm_probe(struct gbphy_device *gbphy_dev, ...@@ -295,13 +295,13 @@ static int gb_pwm_probe(struct gbphy_device *gbphy_dev,
if (ret) if (ret)
goto exit_connection_disable; goto exit_connection_disable;
pwm = &pwmc->chip; chip = &pwmc->chip;
pwm->dev = &gbphy_dev->dev; chip->dev = &gbphy_dev->dev;
pwm->ops = &gb_pwm_ops; chip->ops = &gb_pwm_ops;
pwm->npwm = pwmc->pwm_max + 1; chip->npwm = pwmc->pwm_max + 1;
ret = pwmchip_add(pwm); ret = pwmchip_add(chip);
if (ret) { if (ret) {
dev_err(&gbphy_dev->dev, dev_err(&gbphy_dev->dev,
"failed to register PWM: %d\n", ret); "failed to register PWM: %d\n", ret);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment