summaryrefslogtreecommitdiffstats
path: root/drivers/ptp/ptp_private.h
diff options
context:
space:
mode:
authorRichard Cochran2014-03-20 22:21:54 +0100
committerDavid S. Miller2014-03-21 19:21:14 +0100
commit653104d19a7d490baeb94113151e95d8c04ef01d (patch)
tree8c3bca239f689be17e526304c0164f0994b240f1 /drivers/ptp/ptp_private.h
parentptp: add the pin GET/SETFUNC ioctls to the testptp program. (diff)
downloadkernel-qcow2-linux-653104d19a7d490baeb94113151e95d8c04ef01d.tar.gz
kernel-qcow2-linux-653104d19a7d490baeb94113151e95d8c04ef01d.tar.xz
kernel-qcow2-linux-653104d19a7d490baeb94113151e95d8c04ef01d.zip
ptp: expose the programmable pins via sysfs
This patch adds the sysfs hooks needed in order to get and set the programmable pin settings. Signed-off-by: Richard Cochran <richardcochran@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ptp/ptp_private.h')
-rw-r--r--drivers/ptp/ptp_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ptp/ptp_private.h b/drivers/ptp/ptp_private.h
index b114a84c63c7..9c5d41421b65 100644
--- a/drivers/ptp/ptp_private.h
+++ b/drivers/ptp/ptp_private.h
@@ -51,6 +51,9 @@ struct ptp_clock {
struct mutex pincfg_mux; /* protect concurrent info->pin_config access */
wait_queue_head_t tsev_wq;
int defunct; /* tells readers to go away when clock is being removed */
+ struct device_attribute *pin_dev_attr;
+ struct attribute **pin_attr;
+ struct attribute_group pin_attr_group;
};
/*