Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3115643ybl; Mon, 19 Aug 2019 12:28:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDUys7RoCw7mT0EuyX4+lfqhEHO/ZFOQBvWA93b3Nc43PDptqTXbU2lhcybiozl8XRwVjq X-Received: by 2002:a62:fb15:: with SMTP id x21mr26694016pfm.233.1566242897297; Mon, 19 Aug 2019 12:28:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566242897; cv=none; d=google.com; s=arc-20160816; b=qLYLqhMOj2tweTbZyRSk/xqR+nN4JJ0DJqJCDIi15FheHlqRF6Ez225qD/TblWpoNx F4dDo4uhBYplpa3glOAeAiCKOkYSRlS47Whp9V37HHfciEeLZ4oKIuON0sW+XxbWdKw/ olNS40+OHr+LClMZJbcRwswOooA2jSWMN0MxfXvWyUaBhx0mFTcK6g3vlz5huyzjTETW vOPQqffVVJG0d+LVeuLYzJxZdY937fhI2ZjjtMhXGZHLh5/zd8zviBAPjJWu/Xnxiwc5 ljxrzomqIy54Pris/jA95u2ZNRtI/44NSi1wKUXknPKlDcU5xjYLOd72MQRxGilUefHu JISA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bx5UuS2xvtKJ0SXBMJl1iHp32YNQrImF0fn0dG2vXnw=; b=ZvfX7Mi+0EBCCLOxskXQ/2wUCO3SP8M11tVcgolmm7CjowM4FqEhVgSP1Oc6N90S9O ZrNC/Aq73BdjzLudvhKZK0nHOyyInw1mbhH/NFNkTwmPdhk/0Pu+RxZA8n9EOc4aoa2p T2A7KFhRklwf1oCKrX9optGX2ZnblSIowuIJ5HRtnyYtbOURUmWcXQCncQK2D/wmdwWP jdYzBETsTx3DdYd1aCl0df61NnTNwwp8B69dzgLB5S3QBUInk7VEJdmqJ0MC6DSrs4nL MpLKyucKBZjh9qLl20fSUkfcuLSCfA/K7vlHs29h/kI9DfB2SnGRct+t9t/5OLAH++as 1//g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vLf3uhfa; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4si10419136pgt.20.2019.08.19.12.28.01; Mon, 19 Aug 2019 12:28:17 -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=@kernel.org header.s=default header.b=vLf3uhfa; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728760AbfHST03 (ORCPT + 99 others); Mon, 19 Aug 2019 15:26:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:42378 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728727AbfHST0Y (ORCPT ); Mon, 19 Aug 2019 15:26:24 -0400 Received: from localhost (lfbn-1-10718-76.w90-89.abo.wanadoo.fr [90.89.68.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DE96622CEC; Mon, 19 Aug 2019 19:26:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566242783; bh=NkCMmkVl3T6WU19pJkM1jw+KUsL+tEDiyFAFpO+j2ro=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vLf3uhfaAW/j21Hpmt7Z4rI1p3G2MD971VXopOvLQ3RyEMnR/J/+fpBuHHt6Ii0+R yq3OmiXkeFXd6eRbZCHGIdbtemv0HnmMEFhOuMs0OWeX82QEAltgGAFJi6fTMNNRRQ ZozEEp5vmxeElaekxd8dtFjtnAVEFyLDzF6/4eCg= From: Maxime Ripard To: Chen-Yu Tsai , Maxime Ripard , lgirdwood@gmail.com, broonie@kernel.org Cc: alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, codekipper@gmail.com, linux-kernel@vger.kernel.org Subject: [PATCH 17/21] ASoC: sun4i-i2s: Remove duplicated quirks structure Date: Mon, 19 Aug 2019 21:25:24 +0200 Message-Id: <5ade5de27d23918c5ef30387c23aead951d5ad64.1566242458.git-series.maxime.ripard@bootlin.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxime Ripard The A83t and H3 have the same quirks, so it doesn't make sense to duplicate the quirks structure. Signed-off-by: Maxime Ripard --- sound/soc/sunxi/sun4i-i2s.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c index 65bc296abb37..5dcbab0b4bcb 100644 --- a/sound/soc/sunxi/sun4i-i2s.c +++ b/sound/soc/sunxi/sun4i-i2s.c @@ -1062,25 +1062,6 @@ static const struct sun4i_i2s_quirks sun8i_a83t_i2s_quirks = { .set_fmt = sun8i_i2s_set_soc_fmt, }; -static const struct sun4i_i2s_quirks sun8i_h3_i2s_quirks = { - .has_reset = true, - .reg_offset_txdata = SUN8I_I2S_FIFO_TX_REG, - .sun4i_i2s_regmap = &sun8i_i2s_regmap_config, - .has_fmt_set_lrck_period = true, - .field_clkdiv_mclk_en = REG_FIELD(SUN4I_I2S_CLK_DIV_REG, 8, 8), - .field_fmt_wss = REG_FIELD(SUN4I_I2S_FMT0_REG, 0, 2), - .field_fmt_sr = REG_FIELD(SUN4I_I2S_FMT0_REG, 4, 6), - .bclk_dividers = sun8i_i2s_clk_div, - .num_bclk_dividers = ARRAY_SIZE(sun8i_i2s_clk_div), - .mclk_dividers = sun8i_i2s_clk_div, - .num_mclk_dividers = ARRAY_SIZE(sun8i_i2s_clk_div), - .get_bclk_parent_rate = sun8i_i2s_get_bclk_parent_rate, - .get_sr = sun8i_i2s_get_sr_wss, - .get_wss = sun8i_i2s_get_sr_wss, - .set_chan_cfg = sun8i_i2s_set_chan_cfg, - .set_fmt = sun8i_i2s_set_soc_fmt, -}; - static const struct sun4i_i2s_quirks sun50i_a64_codec_i2s_quirks = { .has_reset = true, .reg_offset_txdata = SUN8I_I2S_FIFO_TX_REG, @@ -1264,7 +1245,7 @@ static const struct of_device_id sun4i_i2s_match[] = { }, { .compatible = "allwinner,sun8i-h3-i2s", - .data = &sun8i_h3_i2s_quirks, + .data = &sun8i_a83t_i2s_quirks, }, { .compatible = "allwinner,sun50i-a64-codec-i2s", -- git-series 0.9.1