summaryrefslogtreecommitdiffstats
path: root/drivers/staging/media/atomisp/i2c/ov5693/ov5693.h
diff options
context:
space:
mode:
authorAndy Shevchenko2017-09-27 20:24:59 +0200
committerMauro Carvalho Chehab2017-10-31 11:19:45 +0100
commite19c92059a700453a304061ff4291dfc2de2902b (patch)
tree92308a22206e76ddcf49c5d5ebafbc7c89f486f6 /drivers/staging/media/atomisp/i2c/ov5693/ov5693.h
parentmedia: staging: atomisp: Use module_i2c_driver() macro (diff)
downloadkernel-qcow2-linux-e19c92059a700453a304061ff4291dfc2de2902b.tar.gz
kernel-qcow2-linux-e19c92059a700453a304061ff4291dfc2de2902b.tar.xz
kernel-qcow2-linux-e19c92059a700453a304061ff4291dfc2de2902b.zip
media: staging: atomisp: Switch i2c drivers to use ->probe_new()
Since most of the drivers are being used on ACPI enabled platforms there is no need to keep legacy API support for them. Thus, switch to ->probe_new() callback and remove orphaned code. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/staging/media/atomisp/i2c/ov5693/ov5693.h')
-rw-r--r--drivers/staging/media/atomisp/i2c/ov5693/ov5693.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/staging/media/atomisp/i2c/ov5693/ov5693.h b/drivers/staging/media/atomisp/i2c/ov5693/ov5693.h
index 8c2e6794463b..b94a72a300d4 100644
--- a/drivers/staging/media/atomisp/i2c/ov5693/ov5693.h
+++ b/drivers/staging/media/atomisp/i2c/ov5693/ov5693.h
@@ -35,8 +35,6 @@
#include "../../include/linux/atomisp_platform.h"
-#define OV5693_NAME "ov5693"
-
#define OV5693_POWER_UP_RETRY_NUM 5
/* Defines for register writes and register array processing */
@@ -278,11 +276,6 @@ struct ov5693_write_ctrl {
struct ov5693_write_buffer buffer;
};
-static const struct i2c_device_id ov5693_id[] = {
- {OV5693_NAME, 0},
- {}
-};
-
static struct ov5693_reg const ov5693_global_setting[] = {
{OV5693_8BIT, 0x0103, 0x01},
{OV5693_8BIT, 0x3001, 0x0a},