Commit a593f2cf authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] cx23885: correct some I2C client indentations

These comparisons fit single line.
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 3b952436
...@@ -1823,8 +1823,7 @@ static int dvb_register(struct cx23885_tsport *port) ...@@ -1823,8 +1823,7 @@ static int dvb_register(struct cx23885_tsport *port)
info.platform_data = &si2168_config; info.platform_data = &si2168_config;
request_module(info.type); request_module(info.type);
client_demod = i2c_new_device(&i2c_bus->i2c_adap, &info); client_demod = i2c_new_device(&i2c_bus->i2c_adap, &info);
if (client_demod == NULL || if (client_demod == NULL || client_demod->dev.driver == NULL)
client_demod->dev.driver == NULL)
goto frontend_detach; goto frontend_detach;
if (!try_module_get(client_demod->dev.driver->owner)) { if (!try_module_get(client_demod->dev.driver->owner)) {
i2c_unregister_device(client_demod); i2c_unregister_device(client_demod);
...@@ -1841,8 +1840,7 @@ static int dvb_register(struct cx23885_tsport *port) ...@@ -1841,8 +1840,7 @@ static int dvb_register(struct cx23885_tsport *port)
info.platform_data = &si2157_config; info.platform_data = &si2157_config;
request_module(info.type); request_module(info.type);
client_tuner = i2c_new_device(adapter, &info); client_tuner = i2c_new_device(adapter, &info);
if (client_tuner == NULL || if (client_tuner == NULL || client_tuner->dev.driver == NULL) {
client_tuner->dev.driver == NULL) {
module_put(client_demod->dev.driver->owner); module_put(client_demod->dev.driver->owner);
i2c_unregister_device(client_demod); i2c_unregister_device(client_demod);
port->i2c_client_demod = NULL; port->i2c_client_demod = NULL;
...@@ -1878,8 +1876,7 @@ static int dvb_register(struct cx23885_tsport *port) ...@@ -1878,8 +1876,7 @@ static int dvb_register(struct cx23885_tsport *port)
info.platform_data = &m88ts2022_config; info.platform_data = &m88ts2022_config;
request_module(info.type); request_module(info.type);
client_tuner = i2c_new_device(adapter, &info); client_tuner = i2c_new_device(adapter, &info);
if (client_tuner == NULL || if (client_tuner == NULL || client_tuner->dev.driver == NULL)
client_tuner->dev.driver == NULL)
goto frontend_detach; goto frontend_detach;
if (!try_module_get(client_tuner->dev.driver->owner)) { if (!try_module_get(client_tuner->dev.driver->owner)) {
i2c_unregister_device(client_tuner); i2c_unregister_device(client_tuner);
...@@ -1925,8 +1922,7 @@ static int dvb_register(struct cx23885_tsport *port) ...@@ -1925,8 +1922,7 @@ static int dvb_register(struct cx23885_tsport *port)
info.platform_data = &m88ts2022_config; info.platform_data = &m88ts2022_config;
request_module(info.type); request_module(info.type);
client_tuner = i2c_new_device(adapter, &info); client_tuner = i2c_new_device(adapter, &info);
if (client_tuner == NULL || if (client_tuner == NULL || client_tuner->dev.driver == NULL)
client_tuner->dev.driver == NULL)
goto frontend_detach; goto frontend_detach;
if (!try_module_get(client_tuner->dev.driver->owner)) { if (!try_module_get(client_tuner->dev.driver->owner)) {
i2c_unregister_device(client_tuner); i2c_unregister_device(client_tuner);
...@@ -1971,8 +1967,7 @@ static int dvb_register(struct cx23885_tsport *port) ...@@ -1971,8 +1967,7 @@ static int dvb_register(struct cx23885_tsport *port)
info.platform_data = &si2168_config; info.platform_data = &si2168_config;
request_module(info.type); request_module(info.type);
client_demod = i2c_new_device(&i2c_bus->i2c_adap, &info); client_demod = i2c_new_device(&i2c_bus->i2c_adap, &info);
if (client_demod == NULL || if (client_demod == NULL || client_demod->dev.driver == NULL)
client_demod->dev.driver == NULL)
goto frontend_detach; goto frontend_detach;
if (!try_module_get(client_demod->dev.driver->owner)) { if (!try_module_get(client_demod->dev.driver->owner)) {
i2c_unregister_device(client_demod); i2c_unregister_device(client_demod);
...@@ -1989,8 +1984,7 @@ static int dvb_register(struct cx23885_tsport *port) ...@@ -1989,8 +1984,7 @@ static int dvb_register(struct cx23885_tsport *port)
info.platform_data = &si2157_config; info.platform_data = &si2157_config;
request_module(info.type); request_module(info.type);
client_tuner = i2c_new_device(adapter, &info); client_tuner = i2c_new_device(adapter, &info);
if (client_tuner == NULL || if (client_tuner == NULL || client_tuner->dev.driver == NULL) {
client_tuner->dev.driver == NULL) {
module_put(client_demod->dev.driver->owner); module_put(client_demod->dev.driver->owner);
i2c_unregister_device(client_demod); i2c_unregister_device(client_demod);
port->i2c_client_demod = NULL; port->i2c_client_demod = NULL;
...@@ -2115,8 +2109,7 @@ static int dvb_register(struct cx23885_tsport *port) ...@@ -2115,8 +2109,7 @@ static int dvb_register(struct cx23885_tsport *port)
info.platform_data = &sp2_config; info.platform_data = &sp2_config;
request_module(info.type); request_module(info.type);
client_ci = i2c_new_device(&i2c_bus2->i2c_adap, &info); client_ci = i2c_new_device(&i2c_bus2->i2c_adap, &info);
if (client_ci == NULL || if (client_ci == NULL || client_ci->dev.driver == NULL) {
client_ci->dev.driver == NULL) {
if (client_tuner) { if (client_tuner) {
module_put(client_tuner->dev.driver->owner); module_put(client_tuner->dev.driver->owner);
i2c_unregister_device(client_tuner); i2c_unregister_device(client_tuner);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment