OSDN Git Service

misc: bcm-vk: add open/release
authorScott Branden <scott.branden@broadcom.com>
Wed, 20 Jan 2021 17:58:20 +0000 (09:58 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Jan 2021 17:44:44 +0000 (18:44 +0100)
commit22c30607d1e0c604b2450a7aa5bc90a63e24f088
treea00d5473b154ae4f10829ab2c80b4d5a7831cfb5
parentaf22527e82d12f9d0b5afb39f25926a91d5fa7e7
misc: bcm-vk: add open/release

Add open/release to replace private data with context for other methods
to use.  Reason for the context is because it is allowed for multiple
sessions to open sysfs.  For each file open, when upper layer queries the
response, only those that are tied to a specified open should be returned.

Co-developed-by: Desmond Yan <desmond.yan@broadcom.com>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Desmond Yan <desmond.yan@broadcom.com>
Signed-off-by: Scott Branden <scott.branden@broadcom.com>
Link: https://lore.kernel.org/r/20210120175827.14820-7-scott.branden@broadcom.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/bcm-vk/Makefile
drivers/misc/bcm-vk/bcm_vk.h
drivers/misc/bcm-vk/bcm_vk_dev.c
drivers/misc/bcm-vk/bcm_vk_msg.c [new file with mode: 0644]
drivers/misc/bcm-vk/bcm_vk_msg.h [new file with mode: 0644]