pcmcia: Switch to using the new API kobj_to_dev()
PATCH 1/1 pcmcia: Switch to using the new API kobj_to_dev()
fixed the following coccicheck:
./drivers/pcmcia/cistpl.c:1584:53-54: WARNING opportunity for kobj_to_dev()
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- drivers/pcmcia/cistpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pcmcia/cistpl.c +1 -1
@@ -1581,7 +1581,7 @@ static ssize_t pccard_store_cis(struct file *filp, struct kobject *kobj,if (error)return error; - s = to_socket(container_of(kobj, struct device, kobj)); + s =to_socket (kobj_to_dev (kobj));if (off)return -EINVAL ;
Signature · 1 line
1.8.3.1
Dominik Brodowski
maintainerAm Tue, Feb 23, 2021 at 05:26:50PM +0800 schrieb Yang Li:
Quoted 6 lines
fixed the following coccicheck:
./drivers/pcmcia/cistpl.c:1584:53-54: WARNING opportunity forkobj_to_dev()Reported-by Abaci Robot <[email protected]>Signed-off-by Yang Li <[email protected]>
Sorry, an equivalent patch is already in pcmcia-next and about to be sent upstream.
Thanks,
Dominik