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

mei: bus: export uuid and protocol version to mei_cl bus drivers

Export the uuid and the protocol version of the underlying me client
for me client bus drivers usage.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Tomas Winkler and committed by
Greg Kroah-Hartman
baeacd03 b26864ca

+29
+26
drivers/misc/mei/bus.c
··· 342 342 EXPORT_SYMBOL_GPL(mei_cl_set_drvdata); 343 343 344 344 /** 345 + * mei_cldev_uuid - return uuid of the underlying me client 346 + * 347 + * @cldev: mei client device 348 + * 349 + * Return: me client uuid 350 + */ 351 + const uuid_le *mei_cldev_uuid(const struct mei_cl_device *cldev) 352 + { 353 + return mei_me_cl_uuid(cldev->me_cl); 354 + } 355 + EXPORT_SYMBOL_GPL(mei_cldev_uuid); 356 + 357 + /** 358 + * mei_cldev_ver - return protocol version of the underlying me client 359 + * 360 + * @cldev: mei client device 361 + * 362 + * Return: me client protocol version 363 + */ 364 + u8 mei_cldev_ver(const struct mei_cl_device *cldev) 365 + { 366 + return mei_me_cl_ver(cldev->me_cl); 367 + } 368 + EXPORT_SYMBOL_GPL(mei_cldev_ver); 369 + 370 + /** 345 371 * mei_cl_enable_device - enable me client device 346 372 * create connection with me client 347 373 *
+3
include/linux/mei_cl_bus.h
··· 85 85 #define MEI_CL_EVENT_TX 1 86 86 #define MEI_CL_EVENT_NOTIF 2 87 87 88 + const uuid_le *mei_cldev_uuid(const struct mei_cl_device *cldev); 89 + u8 mei_cldev_ver(const struct mei_cl_device *cldev); 90 + 88 91 void *mei_cl_get_drvdata(const struct mei_cl_device *device); 89 92 void mei_cl_set_drvdata(struct mei_cl_device *device, void *data); 90 93