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: 3418441 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1EF8D9F3E0 for ; Mon, 30 Dec 2013 10:09:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 570B320107 for ; Mon, 30 Dec 2013 10:09:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 579F5200F2 for ; Mon, 30 Dec 2013 10:09:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754795Ab3L3KJc (ORCPT ); Mon, 30 Dec 2013 05:09:32 -0500 Received: from mail-pa0-f47.google.com ([209.85.220.47]:54221 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752051Ab3L3KJc (ORCPT ); Mon, 30 Dec 2013 05:09:32 -0500 Received: by mail-pa0-f47.google.com with SMTP id kq14so11387412pab.6 for ; Mon, 30 Dec 2013 02:09:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=+93tIqNcSGScf2cO2iZ+Xut5Z9bG3Fu1Rnn2eZotqcE=; b=krgZdr6FNny+RyQebZBvbKBhuIwcg5kx9MtLTktjYwTXeqDFGTbkS5i7DeZmNPUSwC j7LFZmtcLVat0GXqF4eGR4fU9xQXELdOjbUvj2RhO/vF+l4JbVQNo8lqAIMwTfF2F5dn UR7j2bIrDhiKJa90VPfOjflR8e7u/pcslOXOZKTogHksSiWFls8mv7bh3rghxKi0K+cW iku96u1Q8Msh6OTUgMRqTMuQtG8/yBOhZxDM6yeWu51+xHO5bxw628sluB797Lf7evKQ +tjkA1xt1SFyluQ3GIIAEIJx1YKE9t7AdmKvLOyuxaCKT8UE6mRNGkcUK3p00eJPaFy9 DuDQ== X-Gm-Message-State: ALoCoQkfi6UehxHsLlAX0yW87GBTI44ZUpT3KJEjXTy+9RuBj/8p3rBoJPtUXRvmop03Zw0HpFQf 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 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=-7.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 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 */