summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hfi1/eprom.h
diff options
context:
space:
mode:
authorDean Luick <dean.luick@intel.com>2016-09-30 13:41:34 +0200
committerDoug Ledford <dledford@redhat.com>2016-10-02 14:42:19 +0200
commite2113752b783e387f9cb0d8b9d928c6f9fce08b3 (patch)
tree6ccea4f92c6b8a88d5160e10422a63f7466b6eeb /drivers/infiniband/hw/hfi1/eprom.h
parentIB/hfi1: Document new sysfs entries for hfi1 driver (diff)
downloadlinux-e2113752b783e387f9cb0d8b9d928c6f9fce08b3.tar.xz
linux-e2113752b783e387f9cb0d8b9d928c6f9fce08b3.zip
IB/hfi1: Restore EPROM read ability
Partially revert commit d07903174202 ("IB/hfi1: Remove EPROM functionality from data device"), bringing back the ability to read from the EPROM. This code will be used for driver-only acccess to the EPROM, hence change EPROM read to save to a buffer instead of copy touser. Also allow any offset and remove missed includes and leftover declarations. Reviewed-by: Easwar Hariharan <easwar.hariharan@intel.com> Signed-off-by: Dean Luick <dean.luick@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/eprom.h')
-rw-r--r--drivers/infiniband/hw/hfi1/eprom.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/hfi1/eprom.h b/drivers/infiniband/hw/hfi1/eprom.h
index d41f0b1afb15..b7ac9cee1076 100644
--- a/drivers/infiniband/hw/hfi1/eprom.h
+++ b/drivers/infiniband/hw/hfi1/eprom.h
@@ -45,8 +45,6 @@
*
*/
-struct hfi1_cmd;
struct hfi1_devdata;
int eprom_init(struct hfi1_devdata *dd);
-int handle_eprom_command(struct file *fp, const struct hfi1_cmd *cmd);