forked from Minki/linux
b6c50affda
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> Link: https://lore.kernel.org/r/b8b8c64b4065aedff43699ad1f0e2f8d1419c15b.1632884256.git.vilhelm.gray@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
15 lines
373 B
C
15 lines
373 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Counter character device interface
|
|
* Copyright (C) 2020 William Breathitt Gray
|
|
*/
|
|
#ifndef _COUNTER_CHRDEV_H_
|
|
#define _COUNTER_CHRDEV_H_
|
|
|
|
#include <linux/counter.h>
|
|
|
|
int counter_chrdev_add(struct counter_device *const counter);
|
|
void counter_chrdev_remove(struct counter_device *const counter);
|
|
|
|
#endif /* _COUNTER_CHRDEV_H_ */
|