.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | | - * This program is free software; you can redistribute it and/or modify |
---|
3 | | - * it under the terms of the GNU General Public License version 2 as |
---|
4 | | - * published by the Free Software Foundation. |
---|
5 | 3 | * |
---|
6 | 4 | * h3xxx atmel micro companion support, battery subdevice |
---|
7 | 5 | * based on previous kernel 2.4 version |
---|
8 | 6 | * Author : Alessandro Gardich <gremlin@gremlin.it> |
---|
9 | 7 | * Author : Linus Walleij <linus.walleij@linaro.org> |
---|
10 | | - * |
---|
11 | 8 | */ |
---|
12 | 9 | |
---|
13 | 10 | #include <linux/module.h> |
---|
.. | .. |
---|
152 | 149 | default: |
---|
153 | 150 | val->intval = POWER_SUPPLY_TECHNOLOGY_UNKNOWN; |
---|
154 | 151 | break; |
---|
155 | | - }; |
---|
| 152 | + } |
---|
156 | 153 | break; |
---|
157 | 154 | case POWER_SUPPLY_PROP_STATUS: |
---|
158 | 155 | val->intval = get_status(b); |
---|
.. | .. |
---|
171 | 168 | break; |
---|
172 | 169 | default: |
---|
173 | 170 | return -EINVAL; |
---|
174 | | - }; |
---|
| 171 | + } |
---|
175 | 172 | |
---|
176 | 173 | return 0; |
---|
177 | 174 | } |
---|
.. | .. |
---|
188 | 185 | break; |
---|
189 | 186 | default: |
---|
190 | 187 | return -EINVAL; |
---|
191 | | - }; |
---|
| 188 | + } |
---|
192 | 189 | |
---|
193 | 190 | return 0; |
---|
194 | 191 | } |
---|