]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Add hard_iface specific sysfs wrapper macros for UINT
authorLinus Luessing <linus.luessing@web.de>
Sat, 16 Jan 2016 08:40:08 +0000 (16:40 +0800)
committerAntonio Quartulli <a@unstable.cc>
Mon, 29 Feb 2016 08:05:29 +0000 (16:05 +0800)
commit86bc85c55a579e1a6df761b4e0181d57ff6556da
tree2b77cc58902d48ea182e774f485238f9b190eb8f
parentff9eafaadf2657bec7ec424b5058128be71b538f
batman-adv: Add hard_iface specific sysfs wrapper macros for UINT

This allows us to easily add a sysfs parameter for an
unsigned int later, which is not for a batman mesh interface
(e.g. bat0), but for a common interface instead. It allows
reading and writing an atomic_t in hard_iface (instead of
bat_priv compared to the mesh variant).

Developed by Linus during a 6 months trainee study period in
Ascom (Switzerland) AG.

Signed-off-by: Linus Luessing <linus.luessing@web.de>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
[antonio@open-mesh.com: rename functions and move macros]
Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
net/batman-adv/sysfs.c