[PATCH next 00/25] cleanup: use dev_get_drvdata() directly

From: Kefeng Wang
Date: Tue Apr 23 2019 - 03:42:27 EST


Many drivers call to_platform_device() to get platform_device, then
get drvdata by platform_get_drvdata(), but in platfrom_get_drvdata(),
the platform_device is converted back to struct device again.

Using dev_get_drvdata() directly, only build test on arm64/x86_64.

Kefeng Wang (25):
ACPI / DPTF: Use dev_get_drvdata()
crypto: picoxcell: Use dev_get_drvdata()
dmaengine: Use dev_get_drvdata()
drm/exynos: Use dev_get_drvdata()
drm/msm: Use dev_get_drvdata()
drm/omap: Use dev_get_drvdata()
hwmon: s3c: Use dev_get_drvdata()
iio: adc: at91: Use dev_get_drvdata()
input: keyboard: Use dev_get_drvdata()
input: misc: Use dev_get_drvdata()
input: mouse: Use dev_get_drvdata()
input: touchscreen: Use dev_get_drvdata()
iommu/omap: Use dev_get_drvdata()
mailbox: bcm-flexrm-mailbox: Use dev_get_drvdata()
media: platform: Use dev_get_drvdata()
mfd: Use dev_get_drvdata()
mmc: omap_hsmmc: Use dev_get_drvdata()
net: can: Use dev_get_drvdata()
net: calxedaxgmac: Use dev_get_drvdata()
platform/x86: asus-wmi: Use dev_get_drvdata()
rtc: Use dev_get_drvdata()
media: staging/imx7: Use dev_get_drvdata()
thermal: Use dev_get_drvdata()
usb: musb: dsps: Use dev_get_drvdata()
video: fbdev: Use dev_get_drvdata()

drivers/acpi/dptf/dptf_power.c | 3 +--
drivers/crypto/picoxcell_crypto.c | 2 +-
drivers/dma/bcm-sba-raid.c | 3 +--
drivers/dma/nbpfaxi.c | 4 ++--
drivers/gpu/drm/exynos/exynos_drm_fimc.c | 8 +++----
drivers/gpu/drm/exynos/exynos_drm_gsc.c | 5 ++---
drivers/gpu/drm/msm/adreno/adreno_device.c | 6 ++----
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 13 +++++-------
drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 6 ++----
drivers/gpu/drm/msm/dsi/dsi_host.c | 6 ++----
drivers/gpu/drm/msm/msm_drv.c | 3 +--
drivers/gpu/drm/msm/msm_gpu.c | 6 +++---
.../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 18 ++++++----------
drivers/hwmon/s3c-hwmon.c | 4 ++--
drivers/iio/adc/at91-sama5d2_adc.c | 12 ++++-------
drivers/iio/adc/at91_adc.c | 4 ++--
drivers/input/keyboard/ep93xx_keypad.c | 10 ++++-----
drivers/input/keyboard/gpio_keys.c | 6 ++----
drivers/input/keyboard/imx_keypad.c | 10 ++++-----
drivers/input/keyboard/lpc32xx-keys.c | 6 ++----
drivers/input/keyboard/matrix_keypad.c | 10 ++++-----
drivers/input/keyboard/omap4-keypad.c | 10 ++++-----
drivers/input/keyboard/pmic8xxx-keypad.c | 6 ++----
drivers/input/keyboard/pxa27x_keypad.c | 10 ++++-----
drivers/input/keyboard/samsung-keypad.c | 12 ++++-------
drivers/input/keyboard/snvs_pwrkey.c | 10 ++++-----
drivers/input/keyboard/spear-keyboard.c | 10 ++++-----
drivers/input/keyboard/st-keyscan.c | 6 ++----
drivers/input/keyboard/tegra-kbc.c | 10 ++++-----
drivers/input/misc/max77693-haptic.c | 6 ++----
drivers/input/misc/max8925_onkey.c | 10 ++++-----
drivers/input/misc/max8997_haptic.c | 3 +--
drivers/input/misc/msm-vibrator.c | 6 ++----
drivers/input/misc/palmas-pwrbutton.c | 6 ++----
drivers/input/misc/regulator-haptic.c | 6 ++----
drivers/input/misc/stpmic1_onkey.c | 6 ++----
drivers/input/misc/twl4030-vibra.c | 3 +--
drivers/input/misc/twl6040-vibra.c | 3 +--
drivers/input/mouse/navpoint.c | 6 ++----
drivers/input/touchscreen/imx6ul_tsc.c | 6 ++----
drivers/input/touchscreen/s3c2410_ts.c | 3 +--
drivers/iommu/omap-iommu.c | 3 +--
drivers/mailbox/bcm-flexrm-mailbox.c | 6 ++----
.../media/platform/cros-ec-cec/cros-ec-cec.c | 6 ++----
drivers/mfd/ssbi.c | 2 +-
drivers/mfd/t7l66xb.c | 12 ++++-------
drivers/mfd/tc6387xb.c | 12 ++++-------
drivers/mfd/tc6393xb.c | 21 +++++++------------
drivers/mmc/host/omap_hsmmc.c | 4 ++--
drivers/net/can/softing/softing_main.c | 4 ++--
drivers/net/ethernet/calxeda/xgmac.c | 4 ++--
drivers/platform/x86/asus-wmi.c | 3 +--
drivers/rtc/rtc-hid-sensor-time.c | 3 +--
drivers/rtc/rtc-pxa.c | 3 +--
drivers/rtc/rtc-rk808.c | 6 ++----
drivers/rtc/rtc-tx4939.c | 17 ++++++---------
drivers/rtc/rtc-wm831x.c | 18 +++++++---------
drivers/rtc/rtc-wm8350.c | 12 ++++-------
drivers/staging/media/imx/imx7-mipi-csis.c | 6 ++----
.../processor_thermal_device.c | 8 +------
drivers/thermal/st/stm_thermal.c | 6 ++----
drivers/usb/musb/musb_dsps.c | 6 ++----
drivers/video/fbdev/nuc900fb.c | 2 +-
drivers/video/fbdev/s3c2410fb.c | 2 +-
drivers/video/fbdev/uvesafb.c | 16 +++++++-------
65 files changed, 171 insertions(+), 294 deletions(-)

--
2.20.1