From patchwork Sat Jul 25 02:28:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kgene@kernel.org X-Patchwork-Id: 6863451 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 066269F38B for ; Sat, 25 Jul 2015 02:28:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1CD2A20573 for ; Sat, 25 Jul 2015 02:28:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1529E20552 for ; Sat, 25 Jul 2015 02:28:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753357AbbGYC2N (ORCPT ); Fri, 24 Jul 2015 22:28:13 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:33073 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753030AbbGYC2M (ORCPT ); Fri, 24 Jul 2015 22:28:12 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NS001CNLUUYNO10@mailout4.samsung.com> for linux-samsung-soc@vger.kernel.org; Sat, 25 Jul 2015 11:28:10 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.136]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 6C.0E.29324.A34F2B55; Sat, 25 Jul 2015 11:28:10 +0900 (KST) X-AuditID: cbfee68d-f79106d00000728c-8d-55b2f43aca19 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 82.4A.05312.A34F2B55; Sat, 25 Jul 2015 11:28:10 +0900 (KST) Received: from DOKGENEKIM04 ([12.36.165.190]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NS000JKSUUYIA70@mmp1.samsung.com>; Sat, 25 Jul 2015 11:28:10 +0900 (KST) From: Kukjin Kim To: linux-samsung-soc@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/3] ARM: SAMSUNG: make local dev-backlight in mach-s3c64xx Date: Sat, 25 Jul 2015 11:28:10 +0900 Message-id: <064f01d0c681$8cabe220$a603a660$@kernel.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: AdDGgYgtDKHxd/9DRkeQVb5U36xeAg== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprEIsWRmVeSWpSXmKPExsWyRsSkQ9fqy6ZQg1NN5havXxhazDi/j8mB yaNvyypGj8+b5AKYorhsUlJzMstSi/TtErgyem5sYy7ok6zYd6iTqYHxsUgXIyeHhICJRNO0 82wQtpjEhXvrgWwuDiGBpYwSK+etZIUp2v1mIitEYhGjxJ+Ze6Cq3jNK9M6dxtLFyMHBJqAs 0dikD9IgLKAlsXBLEwuILSKgKvG5bQE7iM0sYCjx890fdogab4l5DV/ANrMA1RyYMo0JxOYV sJBoOfaZGcIWlPgx+R4LRK+WxPqdx5kgbHmJzWveMkMcpyCx4+xrRohdehKvlndC1YtI7Hvx jhHkTgmBeewSH37PY4dYJiDxbfIhsJslBGQlNh2AmiMpcXDFDZYJjOKzkKyehWT1LCSrZyFZ sYCRZRWjaGpBckFxUnqRoV5xYm5xaV66XnJ+7iZGYFSd/vesdwfj7QPWhxgFOBiVeHgzJmwM FWJNLCuuzD3EaAp00URmKdHkfGDs5pXEGxqbGVmYmpgaG5lbmimJ8ypK/QwWEkhPLEnNTk0t SC2KLyrNSS0+xMjEwSn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FxUnAgALPULb7wIA AA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch moves dev-backlight from plat-samsung into mach-s3c64xx because it is used for only s3c64xx no other platforms. Signed-off-by: Kukjin Kim Cc: Krzysztof Kozlowski --- arch/arm/mach-s3c64xx/Kconfig | 6 ++++++ arch/arm/mach-s3c64xx/Makefile | 2 ++ arch/arm/{plat-samsung => mach-s3c64xx}/dev-backlight.c | 3 +-- arch/arm/plat-samsung/Kconfig | 6 ------ arch/arm/plat-samsung/Makefile | 2 -- 5 files changed, 9 insertions(+), 10 deletions(-) rename arch/arm/{plat-samsung => mach-s3c64xx}/dev-backlight.c (98%) diff --git a/arch/arm/mach-s3c64xx/Kconfig b/arch/arm/mach-s3c64xx/Kconfig index eff95e9..28c7097 100644 --- a/arch/arm/mach-s3c64xx/Kconfig +++ b/arch/arm/mach-s3c64xx/Kconfig @@ -34,6 +34,12 @@ config S3C64XX_DEV_ONENAND1 help Compile in platform device definition for OneNAND1 controller +config SAMSUNG_DEV_BACKLIGHT + bool + depends on SAMSUNG_DEV_PWM + help + Compile in platform device definition LCD backlight with PWM Timer + # platform specific device setup config S3C64XX_SETUP_I2C0 diff --git a/arch/arm/mach-s3c64xx/Makefile b/arch/arm/mach-s3c64xx/Makefile index 17f4b07..bb233f3 100644 --- a/arch/arm/mach-s3c64xx/Makefile +++ b/arch/arm/mach-s3c64xx/Makefile @@ -40,6 +40,8 @@ obj-$(CONFIG_S3C64XX_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o obj-$(CONFIG_S3C64XX_SETUP_SPI) += setup-spi.o obj-$(CONFIG_S3C64XX_SETUP_USB_PHY) += setup-usb-phy.o +obj-$(CONFIG_SAMSUNG_DEV_BACKLIGHT) += dev-backlight.o + # Machine support obj-$(CONFIG_MACH_ANW6410) += mach-anw6410.o diff --git a/arch/arm/plat-samsung/dev-backlight.c b/arch/arm/mach-s3c64xx/dev-backlight.c similarity index 98% rename from arch/arm/plat-samsung/dev-backlight.c rename to arch/arm/mach-s3c64xx/dev-backlight.c index 2157c5b..62f4648 100644 --- a/arch/arm/plat-samsung/dev-backlight.c +++ b/arch/arm/mach-s3c64xx/dev-backlight.c @@ -1,5 +1,4 @@ -/* linux/arch/arm/plat-samsung/dev-backlight.c - * +/* * Copyright (c) 2011 Samsung Electronics Co., Ltd. * http://www.samsung.com * diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat-samsung/Kconfig index f115c81..0e1874c 100644 --- a/arch/arm/plat-samsung/Kconfig +++ b/arch/arm/plat-samsung/Kconfig @@ -217,12 +217,6 @@ config SAMSUNG_DEV_PWM help Compile in platform device definition for PWM Timer -config SAMSUNG_DEV_BACKLIGHT - bool - depends on SAMSUNG_DEV_PWM - help - Compile in platform device definition LCD backlight with PWM Timer - config S3C24XX_PWM bool "PWM device support" select PWM diff --git a/arch/arm/plat-samsung/Makefile b/arch/arm/plat-samsung/Makefile index c48a2cc..624f5db 100644 --- a/arch/arm/plat-samsung/Makefile +++ b/arch/arm/plat-samsung/Makefile @@ -22,8 +22,6 @@ obj-$(CONFIG_SAMSUNG_ATAGS) += devs.o obj-$(CONFIG_SAMSUNG_ATAGS) += dev-uart.o obj-$(CONFIG_S5P_DEV_MFC) += s5p-dev-mfc.o -obj-$(CONFIG_SAMSUNG_DEV_BACKLIGHT) += dev-backlight.o - # PM support obj-$(CONFIG_PM_SLEEP) += pm-common.o