Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: mfd: Remove TPS65217 interrupts

Interrupt numbers are from the datasheet, so no need to keep them in
the ABI. Use the number in the DT file.

Signed-off-by: Milo Kim <woogyom.kim@gmail.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by

Milo Kim and committed by
Tony Lindgren
be53e38f 30aa2e48

+3 -31
+3 -5
arch/arm/boot/dts/am335x-bone-common.dtsi
··· 6 6 * published by the Free Software Foundation. 7 7 */ 8 8 9 - #include <dt-bindings/mfd/tps65217.h> 10 - 11 9 / { 12 10 cpus { 13 11 cpu@0 { ··· 317 319 ti,pmic-shutdown-controller; 318 320 319 321 charger { 320 - interrupts = <TPS65217_IRQ_AC>, <TPS65217_IRQ_USB>; 321 - interrupt-names = "AC", "USB"; 322 + interrupts = <0>, <1>; 323 + interrupt-names = "USB", "AC"; 322 324 status = "okay"; 323 325 }; 324 326 325 327 pwrbutton { 326 - interrupts = <TPS65217_IRQ_PB>; 328 + interrupts = <2>; 327 329 status = "okay"; 328 330 }; 329 331
-26
include/dt-bindings/mfd/tps65217.h
··· 1 - /* 2 - * This header provides macros for TI TPS65217 DT bindings. 3 - * 4 - * Copyright (C) 2016 Texas Instruments 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 version 2 as 8 - * published by the Free Software Foundation. 9 - * 10 - * This program is distributed in the hope that it will be useful, but 11 - * WITHOUT ANY WARRANTY; without even the implied warranty of 12 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 - * General Public License for more details. 14 - * 15 - * You should have received a copy of the GNU General Public License along with 16 - * this program. If not, see <http://www.gnu.org/licenses/>. 17 - */ 18 - 19 - #ifndef __DT_BINDINGS_TPS65217_H__ 20 - #define __DT_BINDINGS_TPS65217_H__ 21 - 22 - #define TPS65217_IRQ_USB 0 23 - #define TPS65217_IRQ_AC 1 24 - #define TPS65217_IRQ_PB 2 25 - 26 - #endif