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

Commit 9893b905 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

media: cxusb, dib0700: ignore XC2028_I2C_FLUSH



The XC2028_I2C_FLUSH only needs to be implemented on a few
devices. Others can safely ignore it.

That prevents filling the dmesg with lots of messages like:

	dib0700: stk7700ph_xc3028_callback: unknown command 2, arg 0

Cc: stable@vger.kernel.org
Fixes: 4d37ece7 ("[media] tuner/xc2028: Add I2C flush callback")
Reported-by: default avatarEnrico Mioso <mrkiko.rs@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 81742be1
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -679,6 +679,8 @@ static int dvico_bluebird_xc2028_callback(void *ptr, int component,
	case XC2028_RESET_CLK:
	case XC2028_RESET_CLK:
		deb_info("%s: XC2028_RESET_CLK %d\n", __func__, arg);
		deb_info("%s: XC2028_RESET_CLK %d\n", __func__, arg);
		break;
		break;
	case XC2028_I2C_FLUSH:
		break;
	default:
	default:
		deb_info("%s: unknown command %d, arg %d\n", __func__,
		deb_info("%s: unknown command %d, arg %d\n", __func__,
			 command, arg);
			 command, arg);
+1 −0
Original line number Original line Diff line number Diff line
@@ -433,6 +433,7 @@ static int stk7700ph_xc3028_callback(void *ptr, int component,
		state->dib7000p_ops.set_gpio(adap->fe_adap[0].fe, 8, 0, 1);
		state->dib7000p_ops.set_gpio(adap->fe_adap[0].fe, 8, 0, 1);
		break;
		break;
	case XC2028_RESET_CLK:
	case XC2028_RESET_CLK:
	case XC2028_I2C_FLUSH:
		break;
		break;
	default:
	default:
		err("%s: unknown command %d, arg %d\n", __func__,
		err("%s: unknown command %d, arg %d\n", __func__,