On 6/25/19 4:58 PM, Dariusz Marcinkiewicz wrote:
> Hi again.
> On Tue, Jun 25, 2019 at 4:45 PM Hans Verkuil wrote:
>>
>> + mutex_lock(&adap->lock);
>> + if (copy_to_user(parg, &adap->conn_info, sizeof(adap->conn_info)))
>> + ret = -EFAULT;
>> + mutex_unlock(&adap->l
Hi again.
On Tue, Jun 25, 2019 at 4:45 PM Hans Verkuil wrote:
>
> + mutex_lock(&adap->lock);
> + if (copy_to_user(parg, &adap->conn_info, sizeof(adap->conn_info)))
> + ret = -EFAULT;
> + mutex_unlock(&adap->lock);
> + return ret;
> +}
Shouldn't the lock be rel
From: Dariusz Marcinkiewicz
Until now the connector info API was a kernel-internal API only.
This moves it to the public API and adds the new ioctl to retrieve
this information.
Signed-off-by: Dariusz Marcinkiewicz
Signed-off-by: Hans Verkuil
---
drivers/media/cec/cec-adap.c | 2 ++
drivers/