Skip to content

Commit

Permalink
counter: Add character device interface
Browse files Browse the repository at this point in the history
This patch introduces a character device interface for the Counter
subsystem. Device data is exposed through standard character device read
operations. Device data is gathered when a Counter event is pushed by
the respective Counter device driver. Configuration is handled via ioctl
operations on the respective Counter character device node.

Cc: David Lechner <david@lechnology.com>
Cc: Gwendal Grignou <gwendal@chromium.org>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
  • Loading branch information
vilhelmgray authored and intel-lab-lkp committed Jul 5, 2021
1 parent 813f718 commit 059db87
Show file tree
Hide file tree
Showing 6 changed files with 670 additions and 6 deletions.
2 changes: 1 addition & 1 deletion drivers/counter/Makefile
Expand Up @@ -4,7 +4,7 @@
#

obj-$(CONFIG_COUNTER) += counter.o
counter-y := counter-core.o counter-sysfs.o
counter-y := counter-core.o counter-sysfs.o counter-chrdev.o

obj-$(CONFIG_104_QUAD_8) += 104-quad-8.o
obj-$(CONFIG_INTERRUPT_CNT) += interrupt-cnt.o
Expand Down

0 comments on commit 059db87

Please sign in to comment.