Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11445800ybi; Thu, 25 Jul 2019 16:45:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqyupjzk7Ml40ZZTf67087Ej3DFPvvyAIS7Mg0sNnl2lwSHdyjLPqqVrpXdqvecMXH8ozpDg X-Received: by 2002:a63:7c0d:: with SMTP id x13mr48838585pgc.360.1564098307430; Thu, 25 Jul 2019 16:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564098307; cv=none; d=google.com; s=arc-20160816; b=BRieUWne61K689ezXGBA4UO/WFDGQFmYHphMujXRYFymu2v64HHGXeJXV2+yy3sVEY O72ha7+SUyYczf+s3zFEU33S2GWhkwxWuaFsawF5Qq2d/zkiBrxJczaIC5hK9NkqDzej yVaaFOzTv075oUUSAt2VlSeBOtomnfclTZoyQTT7e54RcUgSgt3OD0SJ2s04aUgM3wEM OQQPcg1zB+lpBt18gKNopvVXNHILrLatpMHf2tk0YbWGvWpXgM46lMdDS4GRHdBN15U8 XBAvHgjgPMYYJsMYX23b6vbnIzPMz7DKLp3930Z5U1A77aW1N7Ka3MFxyAPI5UbfcBQw KuGg== 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; bh=6/Yj8N4QeKhGdC8fVeL0wgsx3tHNk0V1czVxpIjrvII=; b=pHz2CTloFSlEWcsE6EFiDJMrRYsu4KsMK7NsGX/80IFBaOIfGzfbmr/eDwhUvuQ4Kg S0EbmKSeSiHx4ErFsts8TIGhhLAhSPdY4wMusxFc6DakD24I3mK9PkLAjpKtA2cCobYg jHsGjZBytEnuJQ7XceC1zlyEf620xsg/HKRs6hXv+0pvBXp5iDG8o8y/ppQMv3p5eEyI /Vx3KC14mJEsIJAggXZ6RbUjXL29/wXTI0zAlec5aIeTQb4nzQlFEQfADkK6qa2ZpXRL BUl4iivn0efBqs7Ss6zlIOdf4kBfzKR3ev5L4d6HNNWbUc6TrAuJMjCUqWOon0/pgjNr rWeg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si17683036pli.12.2019.07.25.16.44.52; Thu, 25 Jul 2019 16:45:07 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727395AbfGYXn0 (ORCPT + 99 others); Thu, 25 Jul 2019 19:43:26 -0400 Received: from mga06.intel.com ([134.134.136.31]:51808 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726985AbfGYXlP (ORCPT ); Thu, 25 Jul 2019 19:41:15 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jul 2019 16:41:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,308,1559545200"; d="scan'208";a="369874676" Received: from amrutaku-mobl1.amr.corp.intel.com (HELO pbossart-mobl3.intel.com) ([10.255.230.75]) by fmsmga006.fm.intel.com with ESMTP; 25 Jul 2019 16:41:13 -0700 From: Pierre-Louis Bossart To: alsa-devel@alsa-project.org Cc: linux-kernel@vger.kernel.org, tiwai@suse.de, broonie@kernel.org, vkoul@kernel.org, gregkh@linuxfoundation.org, jank@cadence.com, srinivas.kandagatla@linaro.org, slawomir.blauciak@intel.com, Pierre-Louis Bossart , Sanyog Kale Subject: [RFC PATCH 10/40] soundwire: cadence_master: remove useless wrapper Date: Thu, 25 Jul 2019 18:40:02 -0500 Message-Id: <20190725234032.21152-11-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190725234032.21152-1-pierre-louis.bossart@linux.intel.com> References: <20190725234032.21152-1-pierre-louis.bossart@linux.intel.com> 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 Now that we've removed the update config, there's no need for a wrapper. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/cadence_master.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/soundwire/cadence_master.c b/drivers/soundwire/cadence_master.c index eb46cf651d62..e85e49340986 100644 --- a/drivers/soundwire/cadence_master.c +++ b/drivers/soundwire/cadence_master.c @@ -749,7 +749,12 @@ EXPORT_SYMBOL(sdw_cdns_thread); /* * init routines */ -static int _cdns_enable_interrupt(struct sdw_cdns *cdns) + +/** + * sdw_cdns_enable_interrupt() - Enable SDW interrupts and update config + * @cdns: Cadence instance + */ +int sdw_cdns_enable_interrupt(struct sdw_cdns *cdns) { u32 mask; @@ -767,17 +772,6 @@ static int _cdns_enable_interrupt(struct sdw_cdns *cdns) return 0; } - -/** - * sdw_cdns_enable_interrupt() - Enable SDW interrupts and update config - * @cdns: Cadence instance - */ -int sdw_cdns_enable_interrupt(struct sdw_cdns *cdns) -{ - _cdns_enable_interrupt(cdns); - - return 0; -} EXPORT_SYMBOL(sdw_cdns_enable_interrupt); static int cdns_allocate_pdi(struct sdw_cdns *cdns, -- 2.20.1