pwm: starfive: Fix incompatible pointer types
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Wed, 3 May 2023 05:04:20 +0000 (14:04 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 24 Jul 2023 23:24:59 +0000 (08:24 +0900)
commit1f80e486f862f33e43efd4bc5390c1b2a6e7c74b
tree7aa652dc90864bad8eab501c001b60ad4d06bdad
parent92521355c11fdead3515cbde5c69bed51ba5f404
pwm: starfive: Fix incompatible pointer types

Fix starfive_pwm_ptc_get_state func and get_state pointer func and
return types not matching. In the current kernel version, get_status
does not use return value, so no problem. Fix return type to void.

  drivers/pwm/pwm-starfive-ptc.c:152:15: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
    .get_state = starfive_pwm_ptc_get_state,
               ^~~~~~~~~~~~~~~~~~~~~~~~~~

Change-Id: Ifd9fb81ead2b174d138dcad60f464e484074aac4
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
drivers/pwm/pwm-starfive-ptc.c