1
0
Fork 0
alistair23-linux/drivers/media/platform
Enric Balletbo i Serra 840d9f131f mfd / platform: cros_ec: Reorganize platform and mfd includes
There is a bit of mess between cros-ec mfd includes and platform
includes. For example, we have a linux/mfd/cros_ec.h include that
exports the interface implemented in platform/chrome/cros_ec_proto.c. Or
we have a linux/mfd/cros_ec_commands.h file that is non related to the
multifunction device (in the sense that is not exporting any function of
the mfd device). This causes crossed includes between mfd and
platform/chrome subsystems and makes the code difficult to read, apart
from creating 'curious' situations where a platform/chrome driver includes
a linux/mfd/cros_ec.h file just to get the exported functions that are
implemented in another platform/chrome driver.

In order to have a better separation on what the cros-ec multifunction
driver does and what the cros-ec core provides move and rework the
affected includes doing:

 - Move cros_ec_commands.h to include/linux/platform_data/cros_ec_commands.h
 - Get rid of the parts that are implemented in the platform/chrome/cros_ec_proto.c
   driver from include/linux/mfd/cros_ec.h to a new file
   include/linux/platform_data/cros_ec_proto.h
 - Update all the drivers with the new includes, so
   - Drivers that only need to know about the protocol include
     - linux/platform_data/cros_ec_proto.h
     - linux/platform_data/cros_ec_commands.h
   - Drivers that need to know about the cros-ec mfd device also include
     - linux/mfd/cros_ec.h

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Wolfram Sang <wsa@the-dreams.de>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Tested-by: Gwendal Grignou <gwendal@chromium.org>
Series changes: 3
- Fix dereferencing pointer to incomplete type 'struct cros_ec_dev' (lkp)
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2019-09-02 11:33:42 +01:00
..
am437x treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
atmel media updates for v5.3-rc1 2019-07-09 09:47:22 -07:00
cadence treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
cec-gpio Linux 5.2-rc2 2019-05-28 11:21:51 -04:00
coda media: coda: encoder parameter change support 2019-06-24 14:48:33 -04:00
cros-ec-cec mfd / platform: cros_ec: Reorganize platform and mfd includes 2019-09-02 11:33:42 +01:00
davinci media: davinci: vpif_capture: fix memory leak in vpif_probe() 2019-06-12 10:46:06 -04:00
exynos-gsc media updates for v5.3-rc1 2019-07-09 09:47:22 -07:00
exynos4-is media updates for v5.3-rc1 2019-07-09 09:47:22 -07:00
marvell-ccic media: cafe-driver: mark an static var as such 2019-06-24 13:10:54 -04:00
meson media: platform: ao-cec-g12a: remove spin_lock_irqsave() locking in meson_ao_cec_g12a_read/write 2019-06-05 15:57:18 -04:00
mtk-jpeg media: mtk-jpeg: Use vb2_get_buffer 2019-06-21 16:22:02 -04:00
mtk-mdp Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
mtk-vcodec media: mtk-vcodec: remove unneeded proxy functions 2019-06-21 17:10:20 -04:00
mtk-vpu Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
omap Linux 5.2-rc2 2019-05-28 11:21:51 -04:00
omap3isp media updates for v5.3-rc1 2019-07-09 09:47:22 -07:00
qcom Linux 5.2-rc5 2019-06-21 16:09:25 -04:00
rcar-vin media: rcar-vin: Merge Gen2 and Gen3 file operations 2019-06-21 16:45:18 -04:00
rockchip/rga treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00
s3c-camif treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
s5p-cec treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
s5p-g2d treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
s5p-jpeg treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
s5p-mfc media updates for v5.3-rc1 2019-07-09 09:47:22 -07:00
seco-cec media: cec: add struct cec_connector_info support 2019-06-27 07:18:43 -04:00
sti media: sti: Use vb2_get_buffer 2019-06-21 16:25:39 -04:00
stm32 media: stm32-dcmi: fix irq = 0 case 2019-06-05 15:28:32 -04:00
sunxi/sun6i-csi media: sun6i: Support A83T variant 2019-05-29 11:27:55 -04:00
tegra-cec treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 201 2019-05-30 11:29:52 -07:00
ti-vpe media updates for v5.3-rc1 2019-07-09 09:47:22 -07:00
vicodec media: vicodec: improve handling of ENC_CMD_STOP/START 2019-06-11 11:33:44 -04:00
vimc media: vimc: cap: check v4l2_fill_pixfmt return value 2019-06-24 14:58:40 -04:00
vivid media: vivid: add CEC support to display present ctrl 2019-06-21 17:34:44 -04:00
vsp1 drm pull request for 5.2 2019-05-08 21:35:19 -07:00
xilinx media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
Kconfig mfd / platform: cros_ec: Move cros-ec core driver out from MFD 2019-09-02 11:33:12 +01:00
Makefile media: soc_camera: Move to the staging tree 2019-02-18 12:09:19 -05:00
aspeed-video.c media: aspeed: add a workaround to fix a silicon bug 2019-06-21 17:21:42 -04:00
fsl-viu.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
imx-pxp.c media: replace strncpy() by strscpy() 2019-03-29 10:26:13 -04:00
imx-pxp.h media: imx-pxp: add i.MX Pixel Pipeline driver 2018-09-11 13:32:17 -04:00
m2m-deinterlace.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
mx2_emmaprp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
pxa_camera.c Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
rcar-fcp.c Char/Misc driver patches for 4.19-rc1 2018-08-18 11:04:51 -07:00
rcar_drif.c media: rcar_drif: Remove devm_ioremap_resource() error printing 2019-03-19 13:44:38 -04:00
rcar_fdp1.c media: fdp1: Support M3N and E3 platforms 2019-06-11 12:29:54 -04:00
rcar_jpu.c media: v4l2: Get rid of ->vidioc_enum_fmt_vid_{cap, out}_mplane 2019-06-05 07:48:32 -04:00
renesas-ceu.c media: v4l2: Get rid of ->vidioc_enum_fmt_vid_{cap, out}_mplane 2019-06-05 07:48:32 -04:00
sh_veu.c media: platform/sh_veu.c: remove redundant NULL pointer checks 2019-03-19 13:49:19 -04:00
sh_vou.c media: doc-rst: Fix broken references 2018-11-23 05:42:49 -05:00
via-camera.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 354 2019-06-05 17:37:09 +02:00
via-camera.h media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
video-mux.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
vim2m.c media: vim2m: fix two double-free issues 2019-05-28 12:49:42 -04:00