From: Hans Verkuil <hverkuil@xs4all.nl>
To: Benjamin Gaignard <benjamin.gaignard@linaro.org>,
Jose Abreu <Jose.Abreu@synopsys.com>
Cc: "linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
hans.verkuil@cisco.com,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/8] [media] staging: st-cec: Use cec_get_drvdata()
Date: Tue, 28 Mar 2017 11:41:14 +0200 [thread overview]
Message-ID: <f2f395bf-e562-3c8a-a3f9-458b4e0e62a1@xs4all.nl> (raw)
In-Reply-To: <CA+M3ks4a=tg3SuE-OiotB_w7ijhvOiBSVfE32kVAx_WCOoMB1g@mail.gmail.com>
On 28/03/17 11:17, Benjamin Gaignard wrote:
> 2017-03-24 17:47 GMT+01:00 Jose Abreu <Jose.Abreu@synopsys.com>:
>> Use helper function to get driver private data from CEC
>> adapter.
>
> That looks good for me but does it make sense to merge that now ? or
> should we wait until
> cec drivers as move out of staging ?
> Hans what is your view on that ?
Why not merge this? It makes no sense not to update staging drivers.
Just because they are in staging doesn't mean you can't improve them :-)
Regards,
Hans
>
>>
>> Signed-off-by: Jose Abreu <joabreu@synopsys.com>
>> Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>
>> ---
>> drivers/staging/media/st-cec/stih-cec.c | 6 +++---
>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/staging/media/st-cec/stih-cec.c b/drivers/staging/media/st-cec/stih-cec.c
>> index 3c25638..521206d 100644
>> --- a/drivers/staging/media/st-cec/stih-cec.c
>> +++ b/drivers/staging/media/st-cec/stih-cec.c
>> @@ -133,7 +133,7 @@ struct stih_cec {
>>
>> static int stih_cec_adap_enable(struct cec_adapter *adap, bool enable)
>> {
>> - struct stih_cec *cec = adap->priv;
>> + struct stih_cec *cec = cec_get_drvdata(adap);
>>
>> if (enable) {
>> /* The doc says (input TCLK_PERIOD * CEC_CLK_DIV) = 0.1ms */
>> @@ -189,7 +189,7 @@ static int stih_cec_adap_enable(struct cec_adapter *adap, bool enable)
>>
>> static int stih_cec_adap_log_addr(struct cec_adapter *adap, u8 logical_addr)
>> {
>> - struct stih_cec *cec = adap->priv;
>> + struct stih_cec *cec = cec_get_drvdata(adap);
>> u32 reg = readl(cec->regs + CEC_ADDR_TABLE);
>>
>> reg |= 1 << logical_addr;
>> @@ -205,7 +205,7 @@ static int stih_cec_adap_log_addr(struct cec_adapter *adap, u8 logical_addr)
>> static int stih_cec_adap_transmit(struct cec_adapter *adap, u8 attempts,
>> u32 signal_free_time, struct cec_msg *msg)
>> {
>> - struct stih_cec *cec = adap->priv;
>> + struct stih_cec *cec = cec_get_drvdata(adap);
>> int i;
>>
>> /* Copy message into registers */
>> --
>> 1.9.1
>>
>>
next prev parent reply other threads:[~2017-03-28 9:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-24 16:47 [PATCH 0/8] Add cec_get_drvdata() Jose Abreu
2017-03-24 16:47 ` [PATCH 1/8] [media] cec: " Jose Abreu
2017-03-24 16:47 ` [PATCH 2/8] [media] staging: st-cec: Use cec_get_drvdata() Jose Abreu
2017-03-28 9:17 ` Benjamin Gaignard
2017-03-28 9:41 ` Hans Verkuil [this message]
2017-03-24 16:47 ` [PATCH 3/8] [media] staging: s5p-cec: " Jose Abreu
2017-03-24 16:47 ` [PATCH 4/8] [media] i2c: adv7511: " Jose Abreu
2017-03-24 16:47 ` [PATCH 5/8] [media] i2c: adv7604: " Jose Abreu
2017-03-24 16:47 ` [PATCH 6/8] [media] i2c: adv7842: " Jose Abreu
2017-03-24 16:47 ` [PATCH 7/8] [media] usb: pulse8-cec: " Jose Abreu
2017-03-24 16:47 ` [PATCH 8/8] [media] platform: vivid: " Jose Abreu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f2f395bf-e562-3c8a-a3f9-458b4e0e62a1@xs4all.nl \
--to=hverkuil@xs4all.nl \
--cc=Jose.Abreu@synopsys.com \
--cc=benjamin.gaignard@linaro.org \
--cc=hans.verkuil@cisco.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®