From: Mike Isely <isely@isely.net>
To: Wolfram Sang <wsa+renesas@sang-engineering.com>
Cc: linux-i2c@vger.kernel.org,
Mauro Carvalho Chehab <mchehab@kernel.org>,
linux-media@vger.kernel.org,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Mike Isely <isely@isely.net>
Subject: Re: [PATCH 6/6] media: usb: pvrusb2: convert to use i2c_new_client_device()
Date: Sat, 28 Mar 2020 22:14:09 -0500 (CDT) [thread overview]
Message-ID: <alpine.DEB.2.21.2003282213550.11595@sheridan.isely.net> (raw)
In-Reply-To: <20200326210947.12747-7-wsa+renesas@sang-engineering.com>
Acked-by: Mike Isely <isely@pobox.com>
On Thu, 26 Mar 2020, Wolfram Sang wrote:
> Move away from the deprecated API.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> ---
> drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c b/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c
> index 275394bafe7d..63db04fe12d3 100644
> --- a/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c
> +++ b/drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c
> @@ -564,7 +564,7 @@ static void pvr2_i2c_register_ir(struct pvr2_hdw *hdw)
> strscpy(info.type, "ir_video", I2C_NAME_SIZE);
> pvr2_trace(PVR2_TRACE_INFO, "Binding %s to i2c address 0x%02x.",
> info.type, info.addr);
> - i2c_new_device(&hdw->i2c_adap, &info);
> + i2c_new_client_device(&hdw->i2c_adap, &info);
> break;
> case PVR2_IR_SCHEME_ZILOG: /* HVR-1950 style */
> case PVR2_IR_SCHEME_24XXX_MCE: /* 24xxx MCE device */
> @@ -579,7 +579,7 @@ static void pvr2_i2c_register_ir(struct pvr2_hdw *hdw)
> strscpy(info.type, "ir_z8f0811_haup", I2C_NAME_SIZE);
> pvr2_trace(PVR2_TRACE_INFO, "Binding %s to i2c address 0x%02x.",
> info.type, info.addr);
> - i2c_new_device(&hdw->i2c_adap, &info);
> + i2c_new_client_device(&hdw->i2c_adap, &info);
> break;
> default:
> /* The device either doesn't support I2C-based IR or we
>
--
Mike Isely
isely @ isely (dot) net
PGP: 03 54 43 4D 75 E5 CC 92 71 16 01 E2 B5 F5 C1 E8
prev parent reply other threads:[~2020-03-29 3:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-26 21:09 [PATCH 0/6] media: convert to use new I2C API Wolfram Sang
2020-03-26 21:09 ` [PATCH 1/6] media: pci: cx88: convert to use i2c_new_client_device() Wolfram Sang
2020-03-26 21:09 ` [PATCH 2/6] media: pci: saa7134: " Wolfram Sang
2020-03-26 21:09 ` [PATCH 3/6] media: marvell-ccic: " Wolfram Sang
2020-03-26 21:09 ` [PATCH 4/6] media: usb: cx231xx: " Wolfram Sang
2020-03-26 21:09 ` [PATCH 5/6] media: usb: hdpvr: " Wolfram Sang
2020-03-26 21:09 ` [PATCH 6/6] media: usb: pvrusb2: " Wolfram Sang
2020-03-29 3:14 ` Mike Isely [this message]
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=alpine.DEB.2.21.2003282213550.11595@sheridan.isely.net \
--to=isely@isely.net \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=wsa+renesas@sang-engineering.com \
/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;
as well as URLs for NNTP newsgroup(s).