Commit bb25db50 authored by Jose Abreu's avatar Jose Abreu Committed by Mauro Carvalho Chehab

[media] usb: pulse8-cec: Use cec_get_drvdata()

Use helper function to get driver private data from CEC
adapter.
Signed-off-by: default avatarJose Abreu <joabreu@synopsys.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 2e60ad17
...@@ -461,7 +461,7 @@ static int pulse8_apply_persistent_config(struct pulse8 *pulse8, ...@@ -461,7 +461,7 @@ static int pulse8_apply_persistent_config(struct pulse8 *pulse8,
static int pulse8_cec_adap_enable(struct cec_adapter *adap, bool enable) static int pulse8_cec_adap_enable(struct cec_adapter *adap, bool enable)
{ {
struct pulse8 *pulse8 = adap->priv; struct pulse8 *pulse8 = cec_get_drvdata(adap);
u8 cmd[16]; u8 cmd[16];
int err; int err;
...@@ -474,7 +474,7 @@ static int pulse8_cec_adap_enable(struct cec_adapter *adap, bool enable) ...@@ -474,7 +474,7 @@ static int pulse8_cec_adap_enable(struct cec_adapter *adap, bool enable)
static int pulse8_cec_adap_log_addr(struct cec_adapter *adap, u8 log_addr) static int pulse8_cec_adap_log_addr(struct cec_adapter *adap, u8 log_addr)
{ {
struct pulse8 *pulse8 = adap->priv; struct pulse8 *pulse8 = cec_get_drvdata(adap);
u16 mask = 0; u16 mask = 0;
u16 pa = adap->phys_addr; u16 pa = adap->phys_addr;
u8 cmd[16]; u8 cmd[16];
...@@ -594,7 +594,7 @@ static int pulse8_cec_adap_log_addr(struct cec_adapter *adap, u8 log_addr) ...@@ -594,7 +594,7 @@ static int pulse8_cec_adap_log_addr(struct cec_adapter *adap, u8 log_addr)
static int pulse8_cec_adap_transmit(struct cec_adapter *adap, u8 attempts, static int pulse8_cec_adap_transmit(struct cec_adapter *adap, u8 attempts,
u32 signal_free_time, struct cec_msg *msg) u32 signal_free_time, struct cec_msg *msg)
{ {
struct pulse8 *pulse8 = adap->priv; struct pulse8 *pulse8 = cec_get_drvdata(adap);
u8 cmd[2]; u8 cmd[2];
unsigned int i; unsigned int i;
int err; int err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment