diff options
| author | Andy Shevchenko <[email protected]> | 2017-09-27 14:24:58 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2017-10-31 06:18:33 -0400 |
| commit | 2cb63c4cf56fbe1a6dcc52595885eb2692a7df01 (patch) | |
| tree | 3231ed2dfa2b4fbb75167bd689b908e6adfb6ac7 /tools/perf/scripts/python | |
| parent | d4870725b99a622e6d05ef62b6a648a3e28adfc3 (diff) | |
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 <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions