| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Support for OLPC XO-1.5 System Control Interrupts (SCI) |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2009-2010 One Laptop per Child |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 8 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 9 | | - * (at your option) any later version. |
|---|
| 10 | 6 | */ |
|---|
| 11 | 7 | |
|---|
| 12 | 8 | #include <linux/device.h> |
|---|
| .. | .. |
|---|
| 43 | 39 | |
|---|
| 44 | 40 | status = acpi_execute_simple_method(NULL, "\\_SB.PCI0.LID.LIDW", wake_on_close); |
|---|
| 45 | 41 | if (ACPI_FAILURE(status)) { |
|---|
| 46 | | - pr_warning(PFX "failed to set lid behavior\n"); |
|---|
| 42 | + pr_warn(PFX "failed to set lid behavior\n"); |
|---|
| 47 | 43 | return 1; |
|---|
| 48 | 44 | } |
|---|
| 49 | 45 | |
|---|
| .. | .. |
|---|
| 79 | 75 | |
|---|
| 80 | 76 | static void battery_status_changed(void) |
|---|
| 81 | 77 | { |
|---|
| 82 | | - struct power_supply *psy = power_supply_get_by_name("olpc-battery"); |
|---|
| 78 | + struct power_supply *psy = power_supply_get_by_name("olpc_battery"); |
|---|
| 83 | 79 | |
|---|
| 84 | 80 | if (psy) { |
|---|
| 85 | 81 | power_supply_changed(psy); |
|---|
| .. | .. |
|---|
| 89 | 85 | |
|---|
| 90 | 86 | static void ac_status_changed(void) |
|---|
| 91 | 87 | { |
|---|
| 92 | | - struct power_supply *psy = power_supply_get_by_name("olpc-ac"); |
|---|
| 88 | + struct power_supply *psy = power_supply_get_by_name("olpc_ac"); |
|---|
| 93 | 89 | |
|---|
| 94 | 90 | if (psy) { |
|---|
| 95 | 91 | power_supply_changed(psy); |
|---|