Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4301086ybg; Mon, 21 Oct 2019 06:59:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqMaF9Yb4lTTvv6wlDIsl2BIE31gA/CxHXKJkFEUY1xbntkYV8WIjWmLxA/ZEXMHhRJHfC X-Received: by 2002:a50:b6f8:: with SMTP id f53mr11550400ede.29.1571666367073; Mon, 21 Oct 2019 06:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571666367; cv=none; d=google.com; s=arc-20160816; b=CxDL1pc/BVcvPwok/ehhs1dvg5eUdsPxNVhzU44Lt5chaqBqf2B4AppVB7aU7mszMj jqWK/y6+skIcNWw5HxTydNlAc9Aw1qKXuC3uGf5cMriEsnxUOunblpFn6jHVj/UQk3Zn MUDOCRroBbZI5PEVDScnAEF1iHj+k4qU6woXFLzP8TDUUZi82U6oj5vHUwTZVfiISdWa x/byKqGfwvAHIWkq8mlqu0RYMwMUFeZAfGDBxiWeVJqjayX2AYEs4YiyLz0+sFarQhpt TMzjUHXa+myoTl5jiFtMRr4ZkL6bylXq/wEeqa9gHwB/NNbIbwoVpdcZN9MhgTF7eL4f OWWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=K+byys6fVG4Ov27yeo/tfyjnL+g5uekxLjyr3Tu6noo=; b=08wD4vAzeEY4sCUzCUBZSATTW3kMeUFjuds2RwJulRLhyPU8iYA9xHrwKTDSsCnf+o WEIEfbO2oo2RCc8twktGcDhSM/iCKv0x68a5wqs7BY/MUSH/xE8Jqr0bZMJvLGr3DUGd x/Gux2ez0kPaa1dOdQvHDv5Z3bbtsijTC2FjhIacSFqI+WdvbyZudf2iFr6OFKz+Lzhi 17VgM+0s28qHik1pgn9L3ob7g5v/A4NC9mP19TEb0bySKEARW6pXPYcg4iF4FIM8ZNpM CCUgAPZfyiE4gv7I8t+JTTisfNnd2uOKbgdRlitdSzE/SncraBypntRtXlUzcelHRt1t t7dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=g71xQgbU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=opensource.cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l21si8471557eje.331.2019.10.21.06.59.03; Mon, 21 Oct 2019 06:59:27 -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=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=g71xQgbU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=opensource.cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728954AbfJUN6V (ORCPT + 99 others); Mon, 21 Oct 2019 09:58:21 -0400 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:3184 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728096AbfJUN6U (ORCPT ); Mon, 21 Oct 2019 09:58:20 -0400 Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9LDsQgr030658; Mon, 21 Oct 2019 08:58:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=PODMain02222019; bh=K+byys6fVG4Ov27yeo/tfyjnL+g5uekxLjyr3Tu6noo=; b=g71xQgbUIYSeXw5AViN5kjY0JDuwDzAZRDQdmv4wVW3J0a1/nRX/AQOexactkVpoXa+r mg6Zd9x0KlT5jxy5MhdZrc0aggh2ZTdPaAFjy2alVPOprHlQ+Owc0PQxhxYBJMstFdHW WKMc4hzyN6+YBvjc5jBqDJBaL//uMJsqCq9gKdKq3YAZpn+QX69Kk2LRHCd4SArplsbS WCWd6jN4QJNJdKnKTsJZv/gIKTsnNPD/OXmWisMmxLkLD8XGP9w7Yzj8s/hfWxwy6S4c A2eaH9NHSrhkJBC3MEVmhvQ191/JGWrKC7w04WPxb/96oxrwJX5Ge+/BGGXrkZGH3gal Kg== Authentication-Results: ppops.net; spf=fail smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from ediex01.ad.cirrus.com ([87.246.76.36]) by mx0b-001ae601.pphosted.com with ESMTP id 2vqxwnjv0v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 21 Oct 2019 08:58:15 -0500 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1591.10; Mon, 21 Oct 2019 14:58:13 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.1591.10 via Frontend Transport; Mon, 21 Oct 2019 14:58:13 +0100 Received: from algalon.ad.cirrus.com (algalon.ad.cirrus.com [198.90.251.122]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 8F7912A1; Mon, 21 Oct 2019 13:58:13 +0000 (UTC) From: Charles Keepax To: CC: , , , , Subject: [PATCH RESEND v4 1/3] mfd: wm8998: Remove some unused registers Date: Mon, 21 Oct 2019 14:58:11 +0100 Message-ID: <20191021135813.13571-1-ckeepax@opensource.cirrus.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-SPF-Result: fail X-Proofpoint-SPF-Record: v=spf1 include:spf-001ae601.pphosted.com include:spf.protection.outlook.com -all X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 adultscore=0 suspectscore=1 phishscore=0 malwarescore=0 mlxlogscore=691 impostorscore=0 spamscore=0 bulkscore=0 lowpriorityscore=0 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1910210132 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Save a few bytes by removing some registers from the driver that are not currently used and not intended to be used at any point in the future. Signed-off-by: Charles Keepax --- drivers/mfd/wm8998-tables.c | 12 ------------ include/linux/mfd/arizona/registers.h | 7 ------- 2 files changed, 19 deletions(-) diff --git a/drivers/mfd/wm8998-tables.c b/drivers/mfd/wm8998-tables.c index ebf0eadd2075c..9b34a6d760949 100644 --- a/drivers/mfd/wm8998-tables.c +++ b/drivers/mfd/wm8998-tables.c @@ -806,12 +806,6 @@ static const struct reg_default wm8998_reg_default[] = { { 0x00000EF3, 0x0000 }, /* R3827 - ISRC 2 CTRL 1 */ { 0x00000EF4, 0x0001 }, /* R3828 - ISRC 2 CTRL 2 */ { 0x00000EF5, 0x0000 }, /* R3829 - ISRC 2 CTRL 3 */ - { 0x00001700, 0x0000 }, /* R5888 - FRF_COEFF_1 */ - { 0x00001701, 0x0000 }, /* R5889 - FRF_COEFF_2 */ - { 0x00001702, 0x0000 }, /* R5890 - FRF_COEFF_3 */ - { 0x00001703, 0x0000 }, /* R5891 - FRF_COEFF_4 */ - { 0x00001704, 0x0000 }, /* R5892 - DAC_COMP_1 */ - { 0x00001705, 0x0000 }, /* R5893 - DAC_COMP_2 */ }; static bool wm8998_readable_register(struct device *dev, unsigned int reg) @@ -1492,12 +1486,6 @@ static bool wm8998_readable_register(struct device *dev, unsigned int reg) case ARIZONA_ISRC_2_CTRL_1: case ARIZONA_ISRC_2_CTRL_2: case ARIZONA_ISRC_2_CTRL_3: - case ARIZONA_FRF_COEFF_1: - case ARIZONA_FRF_COEFF_2: - case ARIZONA_FRF_COEFF_3: - case ARIZONA_FRF_COEFF_4: - case ARIZONA_V2_DAC_COMP_1: - case ARIZONA_V2_DAC_COMP_2: return true; default: return false; diff --git a/include/linux/mfd/arizona/registers.h b/include/linux/mfd/arizona/registers.h index bb1a2530ae279..49e24d1de8d47 100644 --- a/include/linux/mfd/arizona/registers.h +++ b/include/linux/mfd/arizona/registers.h @@ -1186,13 +1186,6 @@ #define ARIZONA_DSP4_SCRATCH_1 0x1441 #define ARIZONA_DSP4_SCRATCH_2 0x1442 #define ARIZONA_DSP4_SCRATCH_3 0x1443 -#define ARIZONA_FRF_COEFF_1 0x1700 -#define ARIZONA_FRF_COEFF_2 0x1701 -#define ARIZONA_FRF_COEFF_3 0x1702 -#define ARIZONA_FRF_COEFF_4 0x1703 -#define ARIZONA_V2_DAC_COMP_1 0x1704 -#define ARIZONA_V2_DAC_COMP_2 0x1705 - /* * Field Definitions. -- 2.11.0