lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.2003282213550.11595@sheridan.isely.net>
Date:   Sat, 28 Mar 2020 22:14:09 -0500 (CDT)
From:   Mike Isely <isely@...ly.net>
To:     Wolfram Sang <wsa+renesas@...g-engineering.com>
cc:     linux-i2c@...r.kernel.org,
        Mauro Carvalho Chehab <mchehab@...nel.org>,
        linux-media@...r.kernel.org,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        Mike Isely <isely@...ly.net>
Subject: Re: [PATCH 6/6] media: usb: pvrusb2: convert to use
 i2c_new_client_device()


Acked-by: Mike Isely <isely@...ox.com>

On Thu, 26 Mar 2020, Wolfram Sang wrote:

> Move away from the deprecated API.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@...g-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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ