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

Commit 9ac15104 authored by Wei Yongjun's avatar Wei Yongjun Committed by Mauro Carvalho Chehab
Browse files

[media] i2c: vs6624: use module_i2c_driver to simplify the code

Use the module_i2c_driver() macro to make the code smaller
and a bit simpler.
dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch

)

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: default avatarScott Jiang <scott.jiang.linux@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 74ffbf86
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -910,18 +910,7 @@ static struct i2c_driver vs6624_driver = {
	.id_table       = vs6624_id,
};

static __init int vs6624_init(void)
{
	return i2c_add_driver(&vs6624_driver);
}

static __exit void vs6624_exit(void)
{
	i2c_del_driver(&vs6624_driver);
}

module_init(vs6624_init);
module_exit(vs6624_exit);
module_i2c_driver(vs6624_driver);

MODULE_DESCRIPTION("VS6624 sensor driver");
MODULE_AUTHOR("Scott Jiang <Scott.Jiang.Linux@gmail.com>");