mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-22 23:55:34 +08:00
tsc_lpc32xx.c: Update due to API changes
This commit is contained in:
parent
ae1e0c25d8
commit
b6c55e1c57
@ -270,10 +270,10 @@ lpc_tsc_init(struct lpc_tsc_softc *sc)
|
|||||||
TSCWRITE4(sc, LPC32XX_TSC_CON, tmp | LPC32XX_TSC_ADCCON_AUTO_EN);
|
TSCWRITE4(sc, LPC32XX_TSC_CON, tmp | LPC32XX_TSC_ADCCON_AUTO_EN);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static int
|
||||||
lpc_tsc_ev_close(struct evdev_dev *evdev, void *data)
|
lpc_tsc_ev_close(struct evdev_dev *evdev)
|
||||||
{
|
{
|
||||||
struct lpc_tsc_softc *sc = (struct lpc_tsc_softc *)data;
|
struct lpc_tsc_softc *sc = evdev_get_softc(evdev);
|
||||||
uint32_t tmp;
|
uint32_t tmp;
|
||||||
|
|
||||||
LPC_TSC_LOCK_ASSERT(sc);
|
LPC_TSC_LOCK_ASSERT(sc);
|
||||||
@ -283,12 +283,14 @@ lpc_tsc_ev_close(struct evdev_dev *evdev, void *data)
|
|||||||
TSCWRITE4(sc, LPC32XX_TSC_CON, tmp);
|
TSCWRITE4(sc, LPC32XX_TSC_CON, tmp);
|
||||||
|
|
||||||
lpc_adc_module_disable(sc);
|
lpc_adc_module_disable(sc);
|
||||||
|
|
||||||
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
lpc_tsc_ev_open(struct evdev_dev *evdev, void *data)
|
lpc_tsc_ev_open(struct evdev_dev *evdev)
|
||||||
{
|
{
|
||||||
struct lpc_tsc_softc *sc = (struct lpc_tsc_softc *)data;
|
struct lpc_tsc_softc *sc = evdev_get_softc(evdev);
|
||||||
|
|
||||||
LPC_TSC_LOCK_ASSERT(sc);
|
LPC_TSC_LOCK_ASSERT(sc);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user