Skip to content

Commit

Permalink
[media] az6007: rename "st" to "state" at az6007_power_ctrl()
Browse files Browse the repository at this point in the history
On all other parts, this var is called state. So, use the same
name here, to be consistent.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Aug 6, 2012
1 parent caeb5ac commit 3cb9f4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/media/dvb/dvb-usb-v2/az6007.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
struct az6007_device_state *st = d_to_priv(d);
struct az6007_device_state *state = d_to_priv(d);
int ret;

pr_debug("%s()\n", __func__);

if (!st->warm) {
mutex_init(&st->mutex);
if (!state->warm) {
mutex_init(&state->mutex);

ret = az6007_write(d, AZ6007_POWER, 0, 2, NULL, 0);
if (ret < 0)
Expand Down Expand Up @@ -674,7 +674,7 @@ int az6007_power_ctrl(struct dvb_usb_device *d, int onoff)
if (ret < 0)
return ret;

st->warm = true;
state->warm = true;

return 0;
}
Expand Down

0 comments on commit 3cb9f4e

Please sign in to comment.