D | psmouse.h | 158 #define __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, _set, _protect) \ argument 170 .set = _set, \ 174 #define __PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set, _protect) \ argument 176 static ssize_t _set(struct psmouse *, void *, const char *, size_t); \ 177 __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, _set, _protect) 179 #define PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set) \ argument 180 __PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set, true) 186 #define PSMOUSE_DEFINE_WO_ATTR(_name, _mode, _data, _set) \ argument 187 static ssize_t _set(struct psmouse *, void *, const char *, size_t); \ 188 __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, NULL, _set, true)
|