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

drivers: most: add character device interface driver

This patch adds the character device (cdev) driver source file
most_cdev.c and modifies the Makefiles and Kconfigs accordingly.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Link: https://lore.kernel.org/r/1597922595-27493-1-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Christian Gromm and committed by
Greg Kroah-Hartman
ceea9344 28c4fb2f

+10 -20
+9
drivers/most/Kconfig
··· 23 23 24 24 To compile this driver as a module, choose M here: the 25 25 module will be called most_usb. 26 + 27 + config MOST_CDEV 28 + tristate "Cdev" 29 + 30 + help 31 + Say Y here if you want to commumicate via character devices. 32 + 33 + To compile this driver as a module, choose M here: the 34 + module will be called most_cdev. 26 35 endif
+1
drivers/most/Makefile
··· 4 4 configfs.o 5 5 6 6 obj-$(CONFIG_MOST_USB_HDM) += most_usb.o 7 + obj-$(CONFIG_MOST_CDEV) += most_cdev.o
-2
drivers/staging/most/Kconfig
··· 18 18 19 19 if MOST_COMPONENTS 20 20 21 - source "drivers/staging/most/cdev/Kconfig" 22 - 23 21 source "drivers/staging/most/net/Kconfig" 24 22 25 23 source "drivers/staging/most/sound/Kconfig"
-1
drivers/staging/most/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 - obj-$(CONFIG_MOST_CDEV) += cdev/ 4 3 obj-$(CONFIG_MOST_NET) += net/ 5 4 obj-$(CONFIG_MOST_SOUND) += sound/ 6 5 obj-$(CONFIG_MOST_VIDEO) += video/
-13
drivers/staging/most/cdev/Kconfig
··· 1 - # SPDX-License-Identifier: GPL-2.0 2 - # 3 - # MOST Cdev configuration 4 - # 5 - 6 - config MOST_CDEV 7 - tristate "Cdev" 8 - 9 - help 10 - Say Y here if you want to commumicate via character devices. 11 - 12 - To compile this driver as a module, choose M here: the 13 - module will be called most_cdev.
-4
drivers/staging/most/cdev/Makefile
··· 1 - # SPDX-License-Identifier: GPL-2.0 2 - obj-$(CONFIG_MOST_CDEV) += most_cdev.o 3 - 4 - most_cdev-objs := cdev.o
drivers/staging/most/cdev/cdev.c drivers/most/most_cdev.c