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>
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)
if (ret < 0)
return ret;
- st->warm = true;
+ state->warm = true;
return 0;
}