D | psmouse.h | 162 #define __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, _set, _protect) \ argument 174 .set = _set, \ 178 #define __PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set, _protect) \ argument 180 static ssize_t _set(struct psmouse *, void *, const char *, size_t); \ 181 __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, _set, _protect) 183 #define PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set) \ argument 184 __PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set, true) 190 #define PSMOUSE_DEFINE_WO_ATTR(_name, _mode, _data, _set) \ argument 191 static ssize_t _set(struct psmouse *, void *, const char *, size_t); \ 192 __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, NULL, _set, true)
|