]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFC: nfcsim: Add support for sysfs control entry
authorThierry Escande <thierry.escande@collabora.com>
Tue, 19 Jul 2016 09:58:16 +0000 (11:58 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 19 Jul 2016 21:23:29 +0000 (23:23 +0200)
commitf9ac6273e5b8fa45e7cd2086e1bbc91af9af7f19
treedd87d826858e81638aabe14bbb5b0c5a24afeb8a
parentd85a301c26621d3466956dc477c32c20c15a52ee
NFC: nfcsim: Add support for sysfs control entry

The idea is to have a way to control and/or modify the behavior of the
nfcsim virtual devices.

This patch creates a folder tree in the debug filesystem. The debugfs is
usually mounted into /sys/kernel/debug and the nfcsim entries are
located in DEBUGFS/nfcsim/nfcX/ where X is either 0 or 1 depending on
the device you want to address.

These folders are empty for now and control entries will be added by
upcoming commits.

Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/nfcsim.c