Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2572979ybh; Mon, 16 Mar 2020 05:54:32 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtUNto5t3TBJBLXT4qeiMiHo+sDZxjQ2cQZHaJ2x4atj8QO5Py3OJ8sStqFXKnWf0Yf/6Vm X-Received: by 2002:a05:6830:4b1:: with SMTP id l17mr22248025otd.275.1584363272114; Mon, 16 Mar 2020 05:54:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584363272; cv=none; d=google.com; s=arc-20160816; b=pJ4l5YNuCUbCeNXyP24didzBr+cSTfgE7G3ne59Z1KWWO3d3vWBT4hMAcHc7+Ah9b6 5pn8KUJTfsoD/5ONCGzNjEyWNAsxLdjYPvM03PZ5v0Uu9giMGgYri/A1P5UU0qg/mAnz /cee5743uvF/UyQ8X+ljqUSaPAV7uPlhj6NKMEO6/rtL4apM9ppXc0/WFsliAFV5DBAY p2O5Yxwvl550MZdHaHAlDtGxgNDysUCkbmw27OZCHRLazgf0n+M8ykmvtlglHuFJdgOe juyO5xUpV5GtNsBG8eWe9HPCrLOpXnb73N6iplNZ0QVlloQ7++/nvooVFaE1C7lKW0/q /6iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:ironport-sdr :dkim-signature; bh=th77HHmBemE42xntgUdJ7THT96eE7pgyP43V5glzemM=; b=MY+D3mbbkxz1StYeWkAMG4jpWDkc3Wmc74v4lUH1VNedX6JdzHyzqeukQ8MESNc/uk EGWscZT9k0tAu4bdBQWlHiisRb4elH7M2Yk26Ruq3Hw8jSs6Dww6Y3FFigfhKu7Cjq6s O0xY1H4bylO1ktBYkSIXkGywIaz8KJR7y5xTki3Z3hqfQY8vamiq/B6yKPBAJQpUe6Kv rF2g/u/9iF+Aws+xS1Lx2NF6HL6/7wmJ2KDT3sGLxG1+lwOkcDUDMVeOmH0iYF4gm6GK DcMYUdDt0dWlFHMyNnClWCSvz8nD5FeaD/AL29FaqF+khMe5LsMKr2U4TaBezhyy4wD8 gX5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@diehl.com header.s=default header.b=r9yeCIsn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11si1611813oic.147.2020.03.16.05.54.19; Mon, 16 Mar 2020 05:54:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@diehl.com header.s=default header.b=r9yeCIsn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731063AbgCPMyD (ORCPT + 99 others); Mon, 16 Mar 2020 08:54:03 -0400 Received: from enterprise01.smtp.diehl.com ([193.201.238.219]:15517 "EHLO enterprise01.smtp.diehl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730878AbgCPMyD (ORCPT ); Mon, 16 Mar 2020 08:54:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=diehl.com; i=@diehl.com; q=dns/txt; s=default; t=1584363242; x=1615899242; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=feePxLU3b23qOHVy3Y3+dMLz8Wwo2J+vDu1gQ/r/Dlg=; b=r9yeCIsnJiuJuU921o8JBcg7Y02/VuHT3lqGBUEKM5QmYfY329zctI5R RR5jo589oe8Mv06A9fuGV9/Gakh4R7nuzZ5omtb2mTMJ85t4z9FuFh1N3 zKc32Vq4WeY0YmAjqjY/Vjfc/q+xlfo8VsT75+Jo79z5oypymcIjGuCJP vSIyzXNDVRqcDgwciayGXVKCpP4O+sB3H8kjaVnbAhRd7Az4C1kes9A7C F+Kpgp/tbLYd6nowXOhwArPAjcXHz9u2p0ZJD4HTXK6q3pcRuCfDFoWA6 SwC3plggKiTs+UlSLWq+3R4I/jzag8vLCx1KVA/pYnsJG0sDqWNsJK6yL Q==; IronPort-SDR: WA+Aep83FvM9YI3o8dqfTDYhu4T82RRZQBGypZw1EWP7u5tOIByDt8zwlabX75il4Wd0Z584EG VzNW1U+J0fvw== From: Denis Osterland-Heim To: "dmurphy@ti.com" , "pavel@ucw.cz" , "mark.rutland@arm.com" , "jacek.anaszewski@gmail.com" , "robh+dt@kernel.org" CC: "linux-kernel@vger.kernel.org" , "Denis Osterland-Heim" , "linux-leds@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: [PATCH v3 1/3] leds: pwm: remove header Thread-Topic: [PATCH v3 1/3] leds: pwm: remove header Thread-Index: AQHV+5H1Iks8TeXaGE2TwcBBeYu7jA== Date: Mon, 16 Mar 2020 12:53:58 +0000 Message-ID: <20200316124851.6303-2-Denis.Osterland@diehl.com> References: <20200316124851.6303-1-Denis.Osterland@diehl.com> In-Reply-To: <20200316124851.6303-1-Denis.Osterland@diehl.com> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Evolution 3.28.5-0ubuntu0.18.04.1 x-ms-exchange-messagesentrepresentingtype: 1 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-TrailerSkip: 1 X-GBS-PROC: 415AWy8o668fDtCxszluz0usJCarfP6B29so9zGpOBBwmTyEXYBVke9EOfE4UxBx Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The header is only used by leds_pwm.c, so move contents to leds_pwm.c and remove it. Apply minor changes suggested by checkpatch. Suggested-by: Pavel Machek Signed-off-by: Denis Osterland-Heim --- drivers/leds/leds-pwm.c | 15 ++++++++++++++- include/linux/leds_pwm.h | 22 ---------------------- 2 files changed, 14 insertions(+), 23 deletions(-) delete mode 100644 include/linux/leds_pwm.h diff --git a/drivers/leds/leds-pwm.c b/drivers/leds/leds-pwm.c index 9111cdede0ee..5f69b6571595 100644 --- a/drivers/leds/leds-pwm.c +++ b/drivers/leds/leds-pwm.c @@ -16,9 +16,22 @@ #include #include #include -#include #include =20 +struct led_pwm { + const char *name; + const char *default_trigger; + unsigned int pwm_id __deprecated; + u8 active_low; + unsigned int max_brightness; + unsigned int pwm_period_ns; +}; + +struct led_pwm_platform_data { + int num_leds; + struct led_pwm *leds; +}; + struct led_pwm_data { struct led_classdev cdev; struct pwm_device *pwm; diff --git a/include/linux/leds_pwm.h b/include/linux/leds_pwm.h deleted file mode 100644 index 93d101d28943..000000000000 --- a/include/linux/leds_pwm.h +++ /dev/null @@ -1,22 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* - * PWM LED driver data - see drivers/leds/leds-pwm.c - */ -#ifndef __LINUX_LEDS_PWM_H -#define __LINUX_LEDS_PWM_H - -struct led_pwm { - const char *name; - const char *default_trigger; - unsigned pwm_id __deprecated; - u8 active_low; - unsigned max_brightness; - unsigned pwm_period_ns; -}; - -struct led_pwm_platform_data { - int num_leds; - struct led_pwm *leds; -}; - -#endif --=20 2.25.1 Diehl Connectivity Solutions GmbH Gesch=E4ftsf=FChrung: Horst Leonberger Sitz der Gesellschaft: N=FCrnberg - Registergericht: Amtsgericht N=FCrnberg: HRB 32315 _________________________________________________________________________= __________________________ Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-M= ail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhal= ten haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung= und/oder Publikation dieser E-Mail ist strengstens untersagt. - Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten = Sie unter https://www.diehl.com/group/de/transparenz-und-informationspfli= chten/ The contents of the above mentioned e-mail is not legally binding. This e= -mail contains confidential and/or legally protected information. Please = inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, dis= closure, alteration, distribution and/or publication of this e-mail is st= rictly prohibited.=20 - For general information on data protection and your respective rights p= lease visit https://www.diehl.com/group/en/transparency-and-information-o= bligations/