Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d33b290a authored by Guennadi Liakhovetski's avatar Guennadi Liakhovetski Committed by Mauro Carvalho Chehab
Browse files

[media] V4L: soc-camera: un-export the soc-camera bus



The soc-camera bus is now completely local again.

Signed-off-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 6b526fed
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -1207,12 +1207,11 @@ static int soc_camera_remove(struct device *dev)
	return 0;
	return 0;
}
}


struct bus_type soc_camera_bus_type = {
static struct bus_type soc_camera_bus_type = {
	.name		= "soc-camera",
	.name		= "soc-camera",
	.probe		= soc_camera_probe,
	.probe		= soc_camera_probe,
	.remove		= soc_camera_remove,
	.remove		= soc_camera_remove,
};
};
EXPORT_SYMBOL_GPL(soc_camera_bus_type);


static struct device_driver ic_drv = {
static struct device_driver ic_drv = {
	.name	= "camera",
	.name	= "camera",
+3 −5
Original line number Original line Diff line number Diff line
@@ -20,12 +20,10 @@
#include <media/videobuf2-core.h>
#include <media/videobuf2-core.h>
#include <media/v4l2-device.h>
#include <media/v4l2-device.h>


extern struct bus_type soc_camera_bus_type;

struct file;
struct file;


struct soc_camera_device {
struct soc_camera_device {
	struct list_head list;
	struct list_head list;		/* list of all registered devices */
	struct device dev;
	struct device dev;
	struct device *pdev;		/* Platform device */
	struct device *pdev;		/* Platform device */
	s32 user_width;
	s32 user_width;
@@ -126,8 +124,8 @@ struct soc_camera_link {
	int num_regulators;
	int num_regulators;


	/*
	/*
	 * For non-I2C devices platform platform has to provide methods to
	 * For non-I2C devices platform has to provide methods to add a device
	 * add a device to the system and to remove
	 * to the system and to remove it
	 */
	 */
	int (*add_device)(struct soc_camera_link *, struct device *);
	int (*add_device)(struct soc_camera_link *, struct device *);
	void (*del_device)(struct soc_camera_link *);
	void (*del_device)(struct soc_camera_link *);