Deleted Added
full compact
acpi_panasonic.c (133629) acpi_panasonic.c (134258)
1/*-
2 * Copyright (c) 2003 OGAWA Takaya <t-ogawa@triaez.kaisei.org>
3 * Copyright (c) 2004 Yoshihiro TAKAHASHI <nyan@FreeBSD.org>
4 * All rights Reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 13 unchanged lines hidden (view full) ---

22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 */
28
29#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2003 OGAWA Takaya <t-ogawa@triaez.kaisei.org>
3 * Copyright (c) 2004 Yoshihiro TAKAHASHI <nyan@FreeBSD.org>
4 * All rights Reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 13 unchanged lines hidden (view full) ---

22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/dev/acpi_support/acpi_panasonic.c 133629 2004-08-13 06:22:31Z njl $");
30__FBSDID("$FreeBSD: head/sys/dev/acpi_support/acpi_panasonic.c 134258 2004-08-24 17:53:25Z njl $");
31
32#include "opt_acpi.h"
33#include <sys/param.h>
34#include <sys/kernel.h>
35#include <sys/malloc.h>
36#include <sys/module.h>
37#include <sys/bus.h>
38

--- 179 unchanged lines hidden (view full) ---

218
219 /* Send the current value to the user and return if no new value. */
220 error = sysctl_handle_int(oidp, &arg, 0, req);
221 if (error != 0 || req->newptr == NULL)
222 goto out;
223
224 /* Set the new value via the appropriate function. */
225 error = handler(sc->handle, HKEY_SET, &arg);
31
32#include "opt_acpi.h"
33#include <sys/param.h>
34#include <sys/kernel.h>
35#include <sys/malloc.h>
36#include <sys/module.h>
37#include <sys/bus.h>
38

--- 179 unchanged lines hidden (view full) ---

218
219 /* Send the current value to the user and return if no new value. */
220 error = sysctl_handle_int(oidp, &arg, 0, req);
221 if (error != 0 || req->newptr == NULL)
222 goto out;
223
224 /* Set the new value via the appropriate function. */
225 error = handler(sc->handle, HKEY_SET, &arg);
226 ACPI_SERIAL_END(panasonic);
227
228out:
226
227out:
228 ACPI_SERIAL_END(panasonic);
229 return (error);
230}
231
232static ACPI_INTEGER
233acpi_panasonic_sinf(ACPI_HANDLE h, ACPI_INTEGER index)
234{
235 ACPI_BUFFER buf;
236 ACPI_OBJECT *res;

--- 187 unchanged lines hidden ---
229 return (error);
230}
231
232static ACPI_INTEGER
233acpi_panasonic_sinf(ACPI_HANDLE h, ACPI_INTEGER index)
234{
235 ACPI_BUFFER buf;
236 ACPI_OBJECT *res;

--- 187 unchanged lines hidden ---