diff options
author | Joshua Stein <jcs@cvs.openbsd.org> | 2018-01-19 18:20:39 +0000 |
---|---|---|
committer | Joshua Stein <jcs@cvs.openbsd.org> | 2018-01-19 18:20:39 +0000 |
commit | 4cfa73e50ce63bd1da70b5394ecc26bdb6fa6638 (patch) | |
tree | c70a766cc1b4780ffd758ab23c5fab01cc860b83 /sys/dev/ic | |
parent | f64e3592acbe8b92510ca6449ffa853f68c2f876 (diff) |
dwiic: cleanup function prototypes after ACPI/PCI split
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/dwiic.c | 36 | ||||
-rw-r--r-- | sys/dev/ic/dwiicvar.h | 3 |
2 files changed, 2 insertions, 37 deletions
diff --git a/sys/dev/ic/dwiic.c b/sys/dev/ic/dwiic.c index 38431b1f7ed..82ffc38ef0e 100644 --- a/sys/dev/ic/dwiic.c +++ b/sys/dev/ic/dwiic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwiic.c,v 1.2 2017/12/01 16:06:25 kettenis Exp $ */ +/* $OpenBSD: dwiic.c,v 1.3 2018/01/19 18:20:38 jcs Exp $ */ /* * Synopsys DesignWare I2C controller * @@ -32,45 +32,11 @@ #include <dev/ic/dwiicvar.h> -int dwiic_match(struct device *, void *, void *); -void dwiic_attach(struct device *, struct device *, void *); -int dwiic_detach(struct device *, int); -int dwiic_activate(struct device *, int); - -int dwiic_init(struct dwiic_softc *); -void dwiic_enable(struct dwiic_softc *, int); -int dwiic_intr(void *); - -void * dwiic_i2c_intr_establish(void *, void *, int, - int (*)(void *), void *, const char *); -const char * dwiic_i2c_intr_string(void *, void *); - -int dwiic_i2c_acquire_bus(void *, int); -void dwiic_i2c_release_bus(void *, int); -uint32_t dwiic_read(struct dwiic_softc *, int); -void dwiic_write(struct dwiic_softc *, int, uint32_t); -int dwiic_i2c_exec(void *, i2c_op_t, i2c_addr_t, const void *, - size_t, void *, size_t, int); -void dwiic_xfer_msg(struct dwiic_softc *); - struct cfdriver dwiic_cd = { NULL, "dwiic", DV_DULL }; int -dwiic_detach(struct device *self, int flags) -{ - struct dwiic_softc *sc = (struct dwiic_softc *)self; - - if (sc->sc_ih != NULL) { - intr_disestablish(sc->sc_ih); - sc->sc_ih = NULL; - } - - return 0; -} - -int dwiic_activate(struct device *self, int act) { struct dwiic_softc *sc = (struct dwiic_softc *)self; diff --git a/sys/dev/ic/dwiicvar.h b/sys/dev/ic/dwiicvar.h index afbbd24bea3..92126f66b8b 100644 --- a/sys/dev/ic/dwiicvar.h +++ b/sys/dev/ic/dwiicvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dwiicvar.h,v 1.1 2017/11/16 18:12:27 jcs Exp $ */ +/* $OpenBSD: dwiicvar.h,v 1.2 2018/01/19 18:20:38 jcs Exp $ */ /* * Synopsys DesignWare I2C controller * @@ -98,6 +98,5 @@ uint32_t dwiic_read(struct dwiic_softc *, int); void dwiic_write(struct dwiic_softc *, int, uint32_t); int dwiic_i2c_exec(void *, i2c_op_t, i2c_addr_t, const void *, size_t, void *, size_t, int); -void dwiic_xfer_msg(struct dwiic_softc *); int dwiic_acpi_found_hid(struct aml_node *node, void *arg); |