From patchwork Mon Dec 30 10:05:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 22795 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f198.google.com (mail-vc0-f198.google.com [209.85.220.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AD77F218FF for ; Mon, 30 Dec 2013 10:09:35 +0000 (UTC) Received: by mail-vc0-f198.google.com with SMTP id lf12sf11940257vcb.9 for ; Mon, 30 Dec 2013 02:09:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=+93tIqNcSGScf2cO2iZ+Xut5Z9bG3Fu1Rnn2eZotqcE=; b=iLJ2I0iV0dfmMk5MkfS/bEA8HGGRRsLHjfS7TdlrI8husTR5JlkBGz2yJTTBkcJwoQ cCduaB2JvLJ+sIbcsPJEm+8r1yQQiKQNTBh5dMoJMFAYdoAv6ECy+6KeGdnobbzks3wb 9cS4tdUB7uTlpEiHErnR/Deq5CUaawfcj7XjQ8dzpnFN2MjB7NtP6Nwj13Cp+Tt6H+is Ur021SekEkIWSQ1ZYKpyX9wX2UP26ugBZN8rtG0J1koygfj0rXo6EEgAOUqCzCPVQTLW 1diRgTeJnV9p848ylZjhLAnP83kqaStKTI637zhlJO3oYSc29Dz/IX6fRsx0YAiHdIfO Uxzg== X-Gm-Message-State: ALoCoQlRoMEqVRoly+wy9c64K+eekaCD/lVL3lUB89I/ptURqVk1Px2dldxXEfphTWo5/qWcsINo X-Received: by 10.58.75.100 with SMTP id b4mr24274136vew.20.1388398174368; Mon, 30 Dec 2013 02:09:34 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.29.197 with SMTP id m5ls3520573qeh.43.gmail; Mon, 30 Dec 2013 02:09:34 -0800 (PST) X-Received: by 10.52.23.13 with SMTP id i13mr29436277vdf.0.1388398174247; Mon, 30 Dec 2013 02:09:34 -0800 (PST) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id x7si10497967vel.0.2013.12.30.02.09.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Dec 2013 02:09:34 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id lf12so4679203vcb.34 for ; Mon, 30 Dec 2013 02:09:34 -0800 (PST) X-Received: by 10.58.46.171 with SMTP id w11mr35565520vem.5.1388398173855; Mon, 30 Dec 2013 02:09:33 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.59.13.131 with SMTP id ey3csp596324ved; Mon, 30 Dec 2013 02:09:33 -0800 (PST) X-Received: by 10.66.159.233 with SMTP id xf9mr38781282pab.139.1388398172798; Mon, 30 Dec 2013 02:09:32 -0800 (PST) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id j8si33029933pad.207.2013.12.30.02.09.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Dec 2013 02:09:32 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Received: by mail-pb0-f50.google.com with SMTP id rr13so11373414pbb.23 for ; Mon, 30 Dec 2013 02:09:31 -0800 (PST) X-Received: by 10.68.209.232 with SMTP id mp8mr67473974pbc.129.1388398171541; Mon, 30 Dec 2013 02:09:31 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id ae5sm105412027pac.18.2013.12.30.02.09.29 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Dec 2013 02:09:31 -0800 (PST) From: Sachin Kamat To: linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] ARM: S5PV210: Re-organize s5p_hdmi_setname Date: Mon, 30 Dec 2013 15:35:52 +0530 Message-Id: <1388397952-31925-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The only user of s5p_hdmi_setname is s5pv210. Inline this function in the caller file and delete the header file (as other functions defined in this header are not called anywhere). Signed-off-by: Sachin Kamat --- arch/arm/mach-s5pv210/common.c | 8 ++++- arch/arm/plat-samsung/include/plat/tv-core.h | 44 -------------------------- 2 files changed, 7 insertions(+), 45 deletions(-) delete mode 100644 arch/arm/plat-samsung/include/plat/tv-core.h diff --git a/arch/arm/mach-s5pv210/common.c b/arch/arm/mach-s5pv210/common.c index 26027a29b8a1..9a30bc45400d 100644 --- a/arch/arm/mach-s5pv210/common.c +++ b/arch/arm/mach-s5pv210/common.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include @@ -174,6 +173,13 @@ void __init samsung_timer_init(void) timer_irqs, &s5pv210_pwm_variant); } +static inline void s5p_hdmi_setname(char *name) +{ +#ifdef CONFIG_S5P_DEV_TV + s5p_device_hdmi.name = name; +#endif +} + /* * s5pv210_map_io * diff --git a/arch/arm/plat-samsung/include/plat/tv-core.h b/arch/arm/plat-samsung/include/plat/tv-core.h deleted file mode 100644 index 3bc34f3ce28f..000000000000 --- a/arch/arm/plat-samsung/include/plat/tv-core.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * arch/arm/plat-samsung/include/plat/tv.h - * - * Copyright 2011 Samsung Electronics Co., Ltd. - * Tomasz Stanislawski - * - * Samsung TV driver core functions - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -#ifndef __SAMSUNG_PLAT_TV_H -#define __SAMSUNG_PLAT_TV_H __FILE__ - -/* - * These functions are only for use with the core support code, such as - * the CPU-specific initialization code. - */ - -/* Re-define device name to differentiate the subsystem in various SoCs. */ -static inline void s5p_hdmi_setname(char *name) -{ -#ifdef CONFIG_S5P_DEV_TV - s5p_device_hdmi.name = name; -#endif -} - -static inline void s5p_mixer_setname(char *name) -{ -#ifdef CONFIG_S5P_DEV_TV - s5p_device_mixer.name = name; -#endif -} - -static inline void s5p_sdo_setname(char *name) -{ -#ifdef CONFIG_S5P_DEV_TV - s5p_device_sdo.name = name; -#endif -} - -#endif /* __SAMSUNG_PLAT_TV_H */