-/* $OpenBSD: aplhidev.c,v 1.4 2021/12/11 20:36:26 kettenis Exp $ */
+/* $OpenBSD: aplhidev.c,v 1.5 2022/02/14 00:53:40 jsg Exp $ */
/*
* Copyright (c) 2021 Mark Kettenis <kettenis@openbsd.org>
* Copyright (c) 2013-2014 joshua stein <jcs@openbsd.org>
uint8_t sc_msgid;
uint32_t *sc_gpio;
- size_t sc_gpiolen;
+ int sc_gpiolen;
struct device *sc_kbd;
uint8_t sc_kbddesc[APLHIDEV_DESC_MAX];
-/* $OpenBSD: imxspi.c,v 1.3 2021/10/31 15:12:00 kettenis Exp $ */
+/* $OpenBSD: imxspi.c,v 1.4 2022/02/14 00:53:40 jsg Exp $ */
/*
* Copyright (c) 2018 Patrick Wildt <patrick@blueri.se>
*
int sc_node;
uint32_t *sc_gpio;
- size_t sc_gpiolen;
+ int sc_gpiolen;
struct rwlock sc_buslock;
struct spi_controller sc_tag;
clock_enable(sc->sc_node, NULL);
sc->sc_gpiolen = OF_getproplen(sc->sc_node, "cs-gpios");
- if (sc->sc_gpiolen) {
+ if (sc->sc_gpiolen > 0) {
sc->sc_gpio = malloc(sc->sc_gpiolen, M_DEVBUF, M_WAITOK);
OF_getpropintarray(sc->sc_node, "cs-gpios",
sc->sc_gpio, sc->sc_gpiolen);
-/* $OpenBSD: simpleamp.c,v 1.1 2020/06/10 23:59:07 patrick Exp $ */
+/* $OpenBSD: simpleamp.c,v 1.2 2022/02/14 00:53:40 jsg Exp $ */
/*
* Copyright (c) 2020 Patrick Wildt <patrick@blueri.se>
*
struct dai_device sc_dai;
uint32_t *sc_gpio;
- size_t sc_gpiolen;
+ int sc_gpiolen;
uint32_t sc_vcc;
};