Commit 3cb9f4e2 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] az6007: rename "st" to "state" at az6007_power_ctrl()

On all other parts, this var is called state. So, use the same
name here, to be consistent.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent caeb5ac7
...@@ -637,13 +637,13 @@ static int az6007_tuner_attach(struct dvb_usb_adapter *adap) ...@@ -637,13 +637,13 @@ static int az6007_tuner_attach(struct dvb_usb_adapter *adap)
int az6007_power_ctrl(struct dvb_usb_device *d, int onoff) int az6007_power_ctrl(struct dvb_usb_device *d, int onoff)
{ {
struct az6007_device_state *st = d_to_priv(d); struct az6007_device_state *state = d_to_priv(d);
int ret; int ret;
pr_debug("%s()\n", __func__); pr_debug("%s()\n", __func__);
if (!st->warm) { if (!state->warm) {
mutex_init(&st->mutex); mutex_init(&state->mutex);
ret = az6007_write(d, AZ6007_POWER, 0, 2, NULL, 0); ret = az6007_write(d, AZ6007_POWER, 0, 2, NULL, 0);
if (ret < 0) if (ret < 0)
...@@ -674,7 +674,7 @@ int az6007_power_ctrl(struct dvb_usb_device *d, int onoff) ...@@ -674,7 +674,7 @@ int az6007_power_ctrl(struct dvb_usb_device *d, int onoff)
if (ret < 0) if (ret < 0)
return ret; return ret;
st->warm = true; state->warm = true;
return 0; return 0;
} }
......
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