]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mei: bus: fix drivers and devices names confusion
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 23 Jul 2015 12:08:33 +0000 (15:08 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Aug 2015 00:20:26 +0000 (17:20 -0700)
commitb37719c31f8448ba36abc218a96663b4a6c66eb6
tree917d0b0d1085253dc83e24bfacdb0a33b1732414
parent23253c31c6a7a3c5a437ec31830e2100484c0748
mei: bus: fix drivers and devices names confusion

In the mei bus layer there is use of different variables
of driver and device types with no clear naming convention.
There are generic struct device and struct driver,
then mei_cl_{device, driver}, and finally mei_device which
in this context serves as a bus device.

The patch sets following naming convention:

the variables of type struct device remains dev
the variables of type struct driver remains drv
the variables of type struct mei_cl_device are now cldev
the variables of type struct mei_cl_driver are now cldrv
the variables of type struct mei_device are now bus, in bus
layer context

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/bus.c
drivers/misc/mei/mei_dev.h
drivers/misc/mei/nfc.c