Commit c8c206c
pinctrl: mediatek: common-v1: Use common probe function
Most of the mediatek pinctrl drivers are calling mtk_pctrl_init() and
passing only a pointer to struct mtk_pinctrl_devdata, as the regmap
handle it passed from device-tree, with the exception of mt6397.
For all of the drivers that don't require passing a struct regmap
pointer from a parent device, simplify the probe mechanism by assigning
the required structure as match data and use mtk_pctrl_common_probe()
as their probe function.
While at it, also collapse the of_device_id entries to a single line,
as they all fit in max 83 columns, which is acceptable.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://lore.kernel.org/r/20220222111144.20796-4-angelogioacchino.delregno@collabora.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>1 parent e091fed commit c8c206c
7 files changed
Lines changed: 15 additions & 60 deletions
File tree
- drivers/pinctrl/mediatek
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | 537 | | |
543 | | - | |
544 | | - | |
| 538 | + | |
| 539 | + | |
545 | 540 | | |
546 | 541 | | |
547 | 542 | | |
548 | 543 | | |
549 | 544 | | |
550 | | - | |
| 545 | + | |
551 | 546 | | |
552 | 547 | | |
553 | 548 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | 590 | | |
596 | | - | |
597 | | - | |
598 | | - | |
| 591 | + | |
599 | 592 | | |
600 | 593 | | |
601 | 594 | | |
602 | 595 | | |
603 | 596 | | |
604 | | - | |
| 597 | + | |
605 | 598 | | |
606 | 599 | | |
607 | 600 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | 306 | | |
312 | | - | |
| 307 | + | |
313 | 308 | | |
314 | 309 | | |
315 | 310 | | |
316 | 311 | | |
317 | | - | |
| 312 | + | |
318 | 313 | | |
319 | 314 | | |
320 | 315 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | 319 | | |
325 | | - | |
326 | | - | |
327 | | - | |
| 320 | + | |
328 | 321 | | |
329 | 322 | | |
330 | 323 | | |
331 | 324 | | |
332 | | - | |
| 325 | + | |
333 | 326 | | |
334 | 327 | | |
335 | 328 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | 338 | | |
344 | | - | |
345 | | - | |
346 | | - | |
| 339 | + | |
347 | 340 | | |
348 | 341 | | |
349 | 342 | | |
350 | 343 | | |
351 | 344 | | |
352 | 345 | | |
353 | | - | |
| 346 | + | |
354 | 347 | | |
355 | 348 | | |
356 | 349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | 472 | | |
478 | | - | |
479 | | - | |
480 | | - | |
| 473 | + | |
481 | 474 | | |
482 | 475 | | |
483 | 476 | | |
484 | 477 | | |
485 | | - | |
| 478 | + | |
486 | 479 | | |
487 | 480 | | |
488 | 481 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | 338 | | |
344 | | - | |
345 | | - | |
346 | | - | |
| 339 | + | |
347 | 340 | | |
348 | 341 | | |
349 | 342 | | |
350 | 343 | | |
351 | 344 | | |
352 | 345 | | |
353 | | - | |
| 346 | + | |
354 | 347 | | |
355 | 348 | | |
356 | 349 | | |
| |||
0 commit comments