xref: /linux/drivers/staging/most/dim2/sysfs.h (revision 44f57d78)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * sysfs.h - MediaLB sysfs information
4  *
5  * Copyright (C) 2015, Microchip Technology Germany II GmbH & Co. KG
6  */
7 
8 /* Author: Andrey Shvetsov <andrey.shvetsov@k2l.de> */
9 
10 #ifndef DIM2_SYSFS_H
11 #define	DIM2_SYSFS_H
12 
13 #include <linux/kobject.h>
14 
15 struct medialb_bus {
16 	struct kobject kobj_group;
17 };
18 
19 struct device;
20 
21 int dim2_sysfs_probe(struct device *dev);
22 void dim2_sysfs_destroy(struct device *dev);
23 
24 /*
25  * callback,
26  * must deliver MediaLB state as true if locked or false if unlocked
27  */
28 bool dim2_sysfs_get_state_cb(void);
29 
30 #endif	/* DIM2_SYSFS_H */
31