mbox series

[-next,0/5] power: reset: use builtin_platform_driver() to simplify code

Message ID 20230807131951.3443880-1-yangyingliang@huawei.com (mailing list archive)
Headers show
Series power: reset: use builtin_platform_driver() to simplify code | expand

Message

Yang Yingliang Aug. 7, 2023, 1:19 p.m. UTC
The driver init function doesn't do anything special, so it can use the
builtin_platform_driver() macro to eliminate boilerplate code.

Yang Yingliang (5):
  power: reset: st-poweroff: use builtin_platform_driver() to simplify
    code
  power: reset: msm: use builtin_platform_driver() to simplify code
  power: reset: xgene-reboot: use builtin_platform_driver() to simplify
    code
  power: reset: axxia-reset: use builtin_platform_driver() to simplify
    code
  power: reset: syscon-poweroff: use builtin_platform_driver() to
    simplify code

 drivers/power/reset/axxia-reset.c     | 7 +------
 drivers/power/reset/msm-poweroff.c    | 7 +------
 drivers/power/reset/st-poweroff.c     | 7 +------
 drivers/power/reset/syscon-poweroff.c | 7 +------
 drivers/power/reset/xgene-reboot.c    | 7 +------
 5 files changed, 5 insertions(+), 30 deletions(-)

Comments

Sebastian Reichel Sept. 12, 2023, 6:44 p.m. UTC | #1
On Mon, 07 Aug 2023 21:19:46 +0800, Yang Yingliang wrote:
> The driver init function doesn't do anything special, so it can use the
> builtin_platform_driver() macro to eliminate boilerplate code.
> 
> Yang Yingliang (5):
>   power: reset: st-poweroff: use builtin_platform_driver() to simplify
>     code
>   power: reset: msm: use builtin_platform_driver() to simplify code
>   power: reset: xgene-reboot: use builtin_platform_driver() to simplify
>     code
>   power: reset: axxia-reset: use builtin_platform_driver() to simplify
>     code
>   power: reset: syscon-poweroff: use builtin_platform_driver() to
>     simplify code
> 
> [...]

Applied, thanks!

[1/5] power: reset: st-poweroff: use builtin_platform_driver() to simplify code
      commit: 70c81c37cf252798bef5fe047a57129ff6a2b31b
[2/5] power: reset: msm: use builtin_platform_driver() to simplify code
      commit: 4e579a5c68d88b340776c2270659de111f8923f6
[3/5] power: reset: xgene-reboot: use builtin_platform_driver() to simplify code
      commit: 764db16149ec6128da548aac54a16b651461fbc8
[4/5] power: reset: axxia-reset: use builtin_platform_driver() to simplify code
      commit: 6a7f7f27e2c766f36c6bd948a5de91ca2703c2a4
[5/5] power: reset: syscon-poweroff: use builtin_platform_driver() to simplify code
      commit: 5b69b5f209b7a6d21329b14b533b390fff6895d5

Best regards,