Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: usb: pvrusb2: convert to use i2c_new_client_device()

Move away from the deprecated API.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Mike Isely <isely@pobox.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

authored by

Wolfram Sang and committed by
Mauro Carvalho Chehab
479ce8f5 f263c851

+2 -2
+2 -2
drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c
··· 564 564 strscpy(info.type, "ir_video", I2C_NAME_SIZE); 565 565 pvr2_trace(PVR2_TRACE_INFO, "Binding %s to i2c address 0x%02x.", 566 566 info.type, info.addr); 567 - i2c_new_device(&hdw->i2c_adap, &info); 567 + i2c_new_client_device(&hdw->i2c_adap, &info); 568 568 break; 569 569 case PVR2_IR_SCHEME_ZILOG: /* HVR-1950 style */ 570 570 case PVR2_IR_SCHEME_24XXX_MCE: /* 24xxx MCE device */ ··· 579 579 strscpy(info.type, "ir_z8f0811_haup", I2C_NAME_SIZE); 580 580 pvr2_trace(PVR2_TRACE_INFO, "Binding %s to i2c address 0x%02x.", 581 581 info.type, info.addr); 582 - i2c_new_device(&hdw->i2c_adap, &info); 582 + i2c_new_client_device(&hdw->i2c_adap, &info); 583 583 break; 584 584 default: 585 585 /* The device either doesn't support I2C-based IR or we