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

pwm: crc: Use consistent variable naming for driver data

All but one local variable of type pointer to struct crystalcove_pwm are
called "crc_pwm", the one outlier is called "pwm" which is usually
reserved for variables of type pointer to struct pwm_device.

So rename that one "pwm" to "crc_pwm" for consistency.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 01b571fb
...@@ -160,22 +160,22 @@ static const struct pwm_ops crc_pwm_ops = { ...@@ -160,22 +160,22 @@ static const struct pwm_ops crc_pwm_ops = {
static int crystalcove_pwm_probe(struct platform_device *pdev) static int crystalcove_pwm_probe(struct platform_device *pdev)
{ {
struct crystalcove_pwm *pwm; struct crystalcove_pwm *crc_pwm;
struct device *dev = pdev->dev.parent; struct device *dev = pdev->dev.parent;
struct intel_soc_pmic *pmic = dev_get_drvdata(dev); struct intel_soc_pmic *pmic = dev_get_drvdata(dev);
pwm = devm_kzalloc(&pdev->dev, sizeof(*pwm), GFP_KERNEL); crc_pwm = devm_kzalloc(&pdev->dev, sizeof(*crc_pwm), GFP_KERNEL);
if (!pwm) if (!crc_pwm)
return -ENOMEM; return -ENOMEM;
pwm->chip.dev = &pdev->dev; crc_pwm->chip.dev = &pdev->dev;
pwm->chip.ops = &crc_pwm_ops; crc_pwm->chip.ops = &crc_pwm_ops;
pwm->chip.npwm = 1; crc_pwm->chip.npwm = 1;
/* get the PMIC regmap */ /* get the PMIC regmap */
pwm->regmap = pmic->regmap; crc_pwm->regmap = pmic->regmap;
return devm_pwmchip_add(&pdev->dev, &pwm->chip); return devm_pwmchip_add(&pdev->dev, &crc_pwm->chip);
} }
static struct platform_driver crystalcove_pwm_driver = { static struct platform_driver crystalcove_pwm_driver = {
......
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