diff options
author | Andy Shevchenko | 2017-09-27 20:24:58 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab | 2017-10-31 11:18:33 +0100 |
commit | 2cb63c4cf56fbe1a6dcc52595885eb2692a7df01 (patch) | |
tree | 3231ed2dfa2b4fbb75167bd689b908e6adfb6ac7 /drivers/staging/media/atomisp/i2c/ov2722.h | |
parent | media: staging: atomisp: Remove AP1302 sensor support (diff) | |
download | kernel-qcow2-linux-2cb63c4cf56fbe1a6dcc52595885eb2692a7df01.tar.gz kernel-qcow2-linux-2cb63c4cf56fbe1a6dcc52595885eb2692a7df01.tar.xz kernel-qcow2-linux-2cb63c4cf56fbe1a6dcc52595885eb2692a7df01.zip |
media: staging: atomisp: Use module_i2c_driver() macro
This is done using coccinelle semantic patch:
//<smpl>
@a@
identifier f, x;
@@
-static f(...) { return i2c_add_driver(&x); }
@b depends on a@
identifier e, a.x;
@@
-static e(...) { i2c_del_driver(&x); }
@c depends on a && b@
identifier a.f;
declarer name module_init;
@@
-module_init(f);
@d depends on a && b && c@
identifier b.e, a.x;
declarer name module_exit;
declarer name module_i2c_driver;
@@
-module_exit(e);
+module_i2c_driver(x);
//</smpl>
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/ov2722.h')
0 files changed, 0 insertions, 0 deletions