From patchwork Fri Dec 1 10:43:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Brugger X-Patchwork-Id: 10086849 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9B9296035E for ; Fri, 1 Dec 2017 10:45:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A4BA92A153 for ; Fri, 1 Dec 2017 10:45:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 974912A18F; Fri, 1 Dec 2017 10:45:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2EF1A2A153 for ; Fri, 1 Dec 2017 10:45:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=Tjn5Ct4UjJYyDCQdkA7ubj6W1unzL0vgwfF9FIDVwnw=; b=Emw 4f4WHqamjj/pqQgJoYhcK7e7kXgN63GRsLo6AEzuGWTWTsHJ1a/oyRjCd6xCnuPuFlUSfGqAx1iAQ ZJZTLQp9X9NldpbKBU5IStbXB5Uo7wN1ueWD4ZiJExBsd1gCzyuT+zRmem1xWWbmLdJG0V39sOH97 OzX3kkkkb5Fe48XQ9KK1x36OOCAXVHLH0jaQu+ZrOtWLJaZ+oOZ1BIX4NXWx42kZA/ebQgvvdsO/A y3/ntK7tMhh3oCeUUoR659OUP/mQn9/9NCTyX4/pWiFIoLhpEPTrNDAivPQAe0Czf+cz3a8VuLBvX 1aDlXt/UsJc7WqWq55AUPUvqyWXZz2w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eKioo-0001b1-6S; Fri, 01 Dec 2017 10:45:18 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eKinb-0008Dv-AN; Fri, 01 Dec 2017 10:44:10 +0000 Received: by mail-pf0-x243.google.com with SMTP id j28so4470055pfk.8; Fri, 01 Dec 2017 02:43:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=JMiLpawk+b56kiFGxoLmqKBSDpjLVZTM+aX6e72dbdE=; b=IVO5lokr6yz3vKlb4bYGo405puPi1hUveS+adzyG063Hupqx9t9vPBURLJSVpijUrj HXW96Z9YBQG5Kls/rte4WEBHqo73kw/QDwFPL+AU081HKb9u9Zo8f6mkGYmourUQDetX V8hhGxi+x2fUyYi5l2eehvCZuPb3UgYBcybXbVptJE+OPKx/Pehu9mQ0MMn4t+eCFsLL p1lz1XgfP4eO0Ii6uCo1EsvT/bRyZ8HitpVFDjAuUz+lCcvjuCsZv3vCYzIJLh1aqnwn 2VyOiqCYfY8IWeQdci4mNq4/82okIWuFdeB9Nv8y+jJzMndrir9dgqHy9iOYReFkNsw3 M8zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=JMiLpawk+b56kiFGxoLmqKBSDpjLVZTM+aX6e72dbdE=; b=sa009J8417imERG73YL8VGX5F7y2I+UVuo1SIqR5ExQIyc8/3obftbT03CptK4KlPI OmCPQKjAkxBMp5kA4EA/z2Q6LrpGYN5OoAro25rFrrGoX/tWfriFO4ZlYfEvrAAv7Mjj 4XB4extkuvF7HifVAC3DW3ADcH3dHijBFFe5wQAWMN6ijp+jk93vllkPmH4pyAzKtYS6 v7AQy6dDMV5LkijnCzErkZAXTMTsNFymco4jfIX3gSnWj9M9Vs6wtabkGC0tnV+MG0aV 6TwkPU5ewVUuvRacMf3wKfmd2Tik7LARAAglvU1UfGXGtc9xIORRCrVlzn12wAN0I0fO Zh4g== X-Gm-Message-State: AJaThX5C6I3qPkj7WuUkm+38YVnxBh7z3IvLIlDDesn6EySDXerlewOd A8FH7Iq63qwqrmZrYCkBIsE= X-Google-Smtp-Source: AGs4zMZSss8VVkNFxPGPRyMmoQZKtnIXXkoJ8c+WK9fJ0W9nRGrs/hBeDcXP8UbCHNtIgcPHpc2u5Q== X-Received: by 10.98.194.71 with SMTP id l68mr9707210pfg.221.1512125022318; Fri, 01 Dec 2017 02:43:42 -0800 (PST) Received: from linux-gy6r.site ([47.61.68.222]) by smtp.gmail.com with ESMTPSA id q22sm11432484pfj.94.2017.12.01.02.43.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Dec 2017 02:43:41 -0800 (PST) From: Matthias Brugger To: rui.zhang@intel.com, edubezval@gmail.com Subject: [PATCH 1/2] thermal: mtk: Cleanup unused defines Date: Fri, 1 Dec 2017 11:43:21 +0100 Message-Id: <20171201104321.8410-1-matthias.bgg@gmail.com> X-Mailer: git-send-email 2.12.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171201_024403_548759_9247E6AF X-CRM114-Status: GOOD ( 10.03 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Matthias Brugger , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, matthias.bgg@gmail.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The mtk_thermal has some defiens which are never used within the driver. This patch delets them. Signed-off-by: Matthias Brugger Acked-by: Daniel Lezcano --- drivers/thermal/mtk_thermal.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/thermal/mtk_thermal.c b/drivers/thermal/mtk_thermal.c index 1e61c09153c9..c75661a3801a 100644 --- a/drivers/thermal/mtk_thermal.c +++ b/drivers/thermal/mtk_thermal.c @@ -32,15 +32,10 @@ #include /* AUXADC Registers */ -#define AUXADC_CON0_V 0x000 -#define AUXADC_CON1_V 0x004 #define AUXADC_CON1_SET_V 0x008 #define AUXADC_CON1_CLR_V 0x00c #define AUXADC_CON2_V 0x010 #define AUXADC_DATA(channel) (0x14 + (channel) * 4) -#define AUXADC_MISC_V 0x094 - -#define AUXADC_CON1_CHANNEL(x) BIT(x) #define APMIXED_SYS_TS_CON1 0x604 @@ -158,8 +153,6 @@ /* The number of sensing points per bank */ #define MT2712_NUM_SENSORS_PER_ZONE 4 -#define THERMAL_NAME "mtk-thermal" - struct mtk_thermal; struct thermal_bank_cfg { @@ -765,7 +758,7 @@ static struct platform_driver mtk_thermal_driver = { .probe = mtk_thermal_probe, .remove = mtk_thermal_remove, .driver = { - .name = THERMAL_NAME, + .name = "mtk-thermal", .of_match_table = mtk_thermal_of_match, }, };