summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authormsaitoh <msaitoh@NetBSD.org>2016-07-14 04:19:26 +0000
committermsaitoh <msaitoh@NetBSD.org>2016-07-14 04:19:26 +0000
commitd6ea4408ca56aec0f951d081215eae0c02ccd042 (patch)
tree247303fcb93e654baddf46cc06f101a3a2d6f575 /sys/dev/acpi
parentab58a4fa0d224c6f4b253b8102d9f43c82f67570 (diff)
KNF. No functional change.
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/vald_acpi.c22
-rw-r--r--sys/dev/acpi/wss_acpi.c7
2 files changed, 16 insertions, 13 deletions
diff --git a/sys/dev/acpi/vald_acpi.c b/sys/dev/acpi/vald_acpi.c
index 424ddf0da07..77d01b36334 100644
--- a/sys/dev/acpi/vald_acpi.c
+++ b/sys/dev/acpi/vald_acpi.c
@@ -1,4 +1,4 @@
-/* $NetBSD: vald_acpi.c,v 1.4 2010/04/15 07:02:24 jruoho Exp $ */
+/* $NetBSD: vald_acpi.c,v 1.5 2016/07/14 04:19:26 msaitoh Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vald_acpi.c,v 1.4 2010/04/15 07:02:24 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vald_acpi.c,v 1.5 2016/07/14 04:19:26 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -206,8 +206,8 @@ vald_acpi_attach(device_t parent, device_t self, void *aux)
rv = vald_acpi_ghci_get(sc, GHCI_BACKLIGHT, &value, &result);
if (ACPI_SUCCESS(rv)) {
if (result != 0)
- aprint_error_dev(self, "can't get backlight status error=%d\n",
- result);
+ aprint_error_dev(self,
+ "can't get backlight status error=%d\n", result);
else
aprint_verbose_dev(self, "LCD backlight %s\n",
((value == GHCI_ON) ? "on" : "off"));
@@ -217,8 +217,8 @@ vald_acpi_attach(device_t parent, device_t self, void *aux)
rv = vald_acpi_ghci_set(sc, GHCI_SYSTEM_EVENT_FIFO, GHCI_ENABLE,
&result);
if (ACPI_SUCCESS(rv) && result != 0)
- aprint_error_dev(self, "can't enable SystemEventFIFO error=%d\n",
- result);
+ aprint_error_dev(self,
+ "can't enable SystemEventFIFO error=%d\n", result);
rv = vald_acpi_ghci_set(sc, GHCI_HOTKEY_EVENT, GHCI_ENABLE, &result);
if (ACPI_SUCCESS(rv) && result != 0)
@@ -558,7 +558,8 @@ vald_acpi_libright_set(struct vald_acpi_softc *sc, int UpDown)
rv = vald_acpi_ghci_set(sc, GHCI_BACKLIGHT, backlight_new,
&result);
if (ACPI_SUCCESS(rv) && result != 0)
- aprint_error_dev(sc->sc_dev, "can't set LCD backlight %s error=%x\n",
+ aprint_error_dev(sc->sc_dev,
+ "can't set LCD backlight %s error=%x\n",
((backlight_new == 1) ? "on" : "off"), result);
}
@@ -569,7 +570,8 @@ vald_acpi_libright_set(struct vald_acpi_softc *sc, int UpDown)
rv = vald_acpi_bcm_set(sc->lcd_handle, bright);
if (ACPI_FAILURE(rv))
- aprint_error_dev(sc->sc_dev, "unable to evaluate _BCM: %s\n",
+ aprint_error_dev(sc->sc_dev,
+ "unable to evaluate _BCM: %s\n",
AcpiFormatException(rv));
} else {
bright = 0;
@@ -598,8 +600,8 @@ vald_acpi_video_switch(struct vald_acpi_softc *sc)
if (ACPI_FAILURE(rv))
return;
if (result != 0) {
- aprint_error_dev(sc->sc_dev, "can't get video status error=%x\n",
- result);
+ aprint_error_dev(sc->sc_dev,
+ "can't get video status error=%x\n", result);
return;
}
diff --git a/sys/dev/acpi/wss_acpi.c b/sys/dev/acpi/wss_acpi.c
index a37107b0521..eba662a53b3 100644
--- a/sys/dev/acpi/wss_acpi.c
+++ b/sys/dev/acpi/wss_acpi.c
@@ -1,4 +1,4 @@
-/* $NetBSD: wss_acpi.c,v 1.30 2016/01/15 15:42:57 joerg Exp $ */
+/* $NetBSD: wss_acpi.c,v 1.31 2016/07/14 04:19:26 msaitoh Exp $ */
/*
* Copyright (c) 2002 Jared D. McNeill <jmcneill@invisible.ca>
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wss_acpi.c,v 1.30 2016/01/15 15:42:57 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wss_acpi.c,v 1.31 2016/07/14 04:19:26 msaitoh Exp $");
#include <sys/param.h>
#include <sys/audioio.h>
@@ -132,7 +132,8 @@ wss_acpi_attach(device_t parent, device_t self, void *aux)
dspio = acpi_res_io(&res, wah->io_region_idx_ad1848);
oplio = acpi_res_io(&res, wah->io_region_idx_opl);
if (dspio == NULL || oplio == NULL) {
- aprint_error_dev(self, "unable to find i/o registers resource\n");
+ aprint_error_dev(self,
+ "unable to find i/o registers resource\n");
goto out;
}
if (bus_space_map(sc->sc_iot, dspio->ar_base, dspio->ar_length,