summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-atmel.c
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea@microchip.com>2019-02-25 11:44:41 -0500
committerThierry Reding <thierry.reding@gmail.com>2019-03-04 05:56:48 -0500
commitabcbe3733e50aacc16fadce11536ac3c70ba55d2 (patch)
treee7d11b0bf0cf3d825f0eb58f729638290b06cab1 /drivers/pwm/pwm-atmel.c
parent0285827d546d9087aadce6d3728dd824e32e3777 (diff)
pwm: atmel: Rename objects of type atmel_pwm_data
Rename objects of type atmel_pwm_data to contain chip name instead of version number. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-atmel.c')
-rw-r--r--drivers/pwm/pwm-atmel.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm/pwm-atmel.c
index 647d063562db..4ac899d8008c 100644
--- a/drivers/pwm/pwm-atmel.c
+++ b/drivers/pwm/pwm-atmel.c
@@ -283,7 +283,7 @@ static const struct pwm_ops atmel_pwm_ops = {
283 .owner = THIS_MODULE, 283 .owner = THIS_MODULE,
284}; 284};
285 285
286static const struct atmel_pwm_data atmel_pwm_data_v1 = { 286static const struct atmel_pwm_data atmel_sam9rl_pwm_data = {
287 .regs = { 287 .regs = {
288 .period = PWMV1_CPRD, 288 .period = PWMV1_CPRD,
289 .period_upd = PWMV1_CUPD, 289 .period_upd = PWMV1_CUPD,
@@ -297,7 +297,7 @@ static const struct atmel_pwm_data atmel_pwm_data_v1 = {
297 }, 297 },
298}; 298};
299 299
300static const struct atmel_pwm_data atmel_pwm_data_v2 = { 300static const struct atmel_pwm_data atmel_sama5_pwm_data = {
301 .regs = { 301 .regs = {
302 .period = PWMV2_CPRD, 302 .period = PWMV2_CPRD,
303 .period_upd = PWMV2_CPRDUPD, 303 .period_upd = PWMV2_CPRDUPD,
@@ -314,10 +314,10 @@ static const struct atmel_pwm_data atmel_pwm_data_v2 = {
314static const struct platform_device_id atmel_pwm_devtypes[] = { 314static const struct platform_device_id atmel_pwm_devtypes[] = {
315 { 315 {
316 .name = "at91sam9rl-pwm", 316 .name = "at91sam9rl-pwm",
317 .driver_data = (kernel_ulong_t)&atmel_pwm_data_v1, 317 .driver_data = (kernel_ulong_t)&atmel_sam9rl_pwm_data,
318 }, { 318 }, {
319 .name = "sama5d3-pwm", 319 .name = "sama5d3-pwm",
320 .driver_data = (kernel_ulong_t)&atmel_pwm_data_v2, 320 .driver_data = (kernel_ulong_t)&atmel_sama5_pwm_data,
321 }, { 321 }, {
322 /* sentinel */ 322 /* sentinel */
323 }, 323 },
@@ -327,13 +327,13 @@ MODULE_DEVICE_TABLE(platform, atmel_pwm_devtypes);
327static const struct of_device_id atmel_pwm_dt_ids[] = { 327static const struct of_device_id atmel_pwm_dt_ids[] = {
328 { 328 {
329 .compatible = "atmel,at91sam9rl-pwm", 329 .compatible = "atmel,at91sam9rl-pwm",
330 .data = &atmel_pwm_data_v1, 330 .data = &atmel_sam9rl_pwm_data,
331 }, { 331 }, {
332 .compatible = "atmel,sama5d3-pwm", 332 .compatible = "atmel,sama5d3-pwm",
333 .data = &atmel_pwm_data_v2, 333 .data = &atmel_sama5_pwm_data,
334 }, { 334 }, {
335 .compatible = "atmel,sama5d2-pwm", 335 .compatible = "atmel,sama5d2-pwm",
336 .data = &atmel_pwm_data_v2, 336 .data = &atmel_sama5_pwm_data,
337 }, { 337 }, {
338 /* sentinel */ 338 /* sentinel */
339 }, 339 },