]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/staging/nvec/nvec.h
staging: nvec: remove instantiating via platform device
[karo-tx-linux.git] / drivers / staging / nvec / nvec.h
index b7a14bc0ab9153319b58bad6f30f7e538d3fc775..e880518935fb016bbf15ef8495c64527489be8ef 100644 (file)
@@ -102,31 +102,6 @@ struct nvec_msg {
        atomic_t used;
 };
 
-/**
- * struct nvec_subdev - A subdevice of nvec, such as nvec_kbd
- * @name: The name of the sub device
- * @platform_data: Platform data
- * @id: Identifier of the sub device
- */
-struct nvec_subdev {
-       const char *name;
-       void *platform_data;
-       int id;
-};
-
-/**
- * struct nvec_platform_data - platform data for a tegra slave controller
- * @i2c_addr: number of i2c slave adapter the ec is connected to
- * @gpio: gpio number for the ec request line
- *
- * Platform data, to be used in board definitions. For an example, take a
- * look at the paz00 board in arch/arm/mach-tegra/board-paz00.c
- */
-struct nvec_platform_data {
-       int i2c_addr;
-       int gpio;
-};
-
 /**
  * struct nvec_chip - A single connection to an NVIDIA Embedded controller
  * @dev: The device
@@ -197,9 +172,8 @@ extern int nvec_register_notifier(struct nvec_chip *nvec,
                                  struct notifier_block *nb,
                                  unsigned int events);
 
-extern int nvec_unregister_notifier(struct device *dev,
-                                   struct notifier_block *nb,
-                                   unsigned int events);
+extern int nvec_unregister_notifier(struct nvec_chip *dev,
+                                   struct notifier_block *nb);
 
 extern void nvec_msg_free(struct nvec_chip *nvec, struct nvec_msg *msg);