24 lines
473 B
C
Executable file
24 lines
473 B
C
Executable file
#ifndef CTS_SYSFS_H
|
|
#define CTS_SYSFS_H
|
|
|
|
#include "cts_config.h"
|
|
|
|
struct device;
|
|
|
|
extern u16 speed;
|
|
|
|
#ifdef CONFIG_CTS_SYSFS
|
|
extern int cts_sysfs_add_device(struct device *dev);
|
|
extern void cts_sysfs_remove_device(struct device *dev);
|
|
#else /* CONFIG_CTS_SYSFS */
|
|
static inline int cts_sysfs_add_device(struct device *dev)
|
|
{
|
|
return -ENOTSUPP;
|
|
}
|
|
|
|
static inline void cts_sysfs_remove_device(struct device *dev)
|
|
{
|
|
}
|
|
#endif /* CONFIG_CTS_SYSFS */
|
|
|
|
#endif /* CTS_SYSFS_H */
|