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

Commit ebee7a46 authored by himta ram's avatar himta ram Committed by Gerrit - the friendly Code Review server
Browse files

radio: RTC6226: remove the V4L2_CAP_DEVICE_CAPS cap as device_caps



V4l2 framewrok warn that Drivers must not change device_caps.
There is a device cap mismatch when querying device capabilities
for rtc6226 driver compared to cap filled at probe time.
Remove the V4L2_CAP_DEVICE_CAPS cap as device_caps during rtc6226
driver probe.

CRs-Fixed: 2691794
Change-Id: Ice3c0cbbf583762a500647f4a54f68f92d6586bb
Signed-off-by: default avatarhimta ram <hram@codeaurora.org>
parent bf4eaa44
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -808,8 +808,7 @@ static int rtc6226_i2c_probe(struct i2c_client *client,
	radio->videodev.v4l2_dev = v4l2_dev;
	radio->videodev.ioctl_ops = &rtc6226_ioctl_ops;
	radio->videodev.device_caps = V4L2_CAP_HW_FREQ_SEEK | V4L2_CAP_READWRITE
		| V4L2_CAP_TUNER | V4L2_CAP_RADIO | V4L2_CAP_RDS_CAPTURE |
		V4L2_CAP_DEVICE_CAPS;
		| V4L2_CAP_TUNER | V4L2_CAP_RADIO | V4L2_CAP_RDS_CAPTURE;
	video_set_drvdata(&radio->videodev, radio);

	/* rds buffer allocation */