From patchwork Thu Nov 26 15:05:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Mouiche X-Patchwork-Id: 7707481 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 761D2BF90C for ; Thu, 26 Nov 2015 15:07:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B2C7420573 for ; Thu, 26 Nov 2015 15:07:46 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 7B9A72052D for ; Thu, 26 Nov 2015 15:07:45 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 93B8626680D; Thu, 26 Nov 2015 16:07:44 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, NO_DNS_FOR_FROM,RCVD_IN_DNSWL_LOW,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 5AC65264FFB; Thu, 26 Nov 2015 16:06:21 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id B9915264FF9; Thu, 26 Nov 2015 16:06:19 +0100 (CET) Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by alsa0.perex.cz (Postfix) with ESMTP id CF938261A5E for ; Thu, 26 Nov 2015 16:06:12 +0100 (CET) Received: by wmvv187 with SMTP id v187so35376318wmv.1 for ; Thu, 26 Nov 2015 07:06:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=invoxia-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rFCW7vlknlztbEN8B6VEmwBMGCHsGMnYk6IAxPoN+aE=; b=wLRZkE6nZJQdcj+BYNbsD2pqfksuNyWFqHUUk8EvP/woK9H/1WjllKm8wmgaqj8fOO lWSDkco8mZg1pcexcBXWHJXXLmBYKm5LQeUpH+UB5Isn9Ljbpu024Qv6KgqwRRiJiJqn P/vyEiObAd7giqQBsNMklLHHDS3oYSit/s6RqU4MW/TTX0QybUR9G2iDSSMy3GsiHcTt rm1hzNd0isWPSTlKYFvZU4h8Rzou5VCUzX55bNAgvXM0afI8icNy4HAiCOpDd5el+2K5 3kELrqO8sArHNfbjtanb5PRDkUyriP4bALfP55UBlVlghfGlHc9fXXf5zDxmcO1YRTUD 48Cw== 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:in-reply-to :references; bh=rFCW7vlknlztbEN8B6VEmwBMGCHsGMnYk6IAxPoN+aE=; b=EymJFayXlkb6GT/Ia8+OsScVuXL3C3QIkLXDFm9RUH8UQhTbcBsbWc3k/AdwFFtyTw tG5fJBczLlEq6Y1tVb6DMSPkvWuzeAs+gtCgxZ/y0QNQPqfl1n8PjMNOlI0WgnSmYtln 4iSZoPigm41XMTIzrVBWrHMt74s5pgvoO3/1nwQrj2CLL6S9yU/s4HG74GNVzhOX/8E2 6yiyLPMvaCNmKxEN6Y+kf5jv4Uu8aEcD2NLMGonEZnvuad9sSHafDhYvQM6Q0ajgDXxt pzHpumHJJG7oVuyqJ2U6ypR/IPhlCmaHtaaqD1UktNsNvJfv9SbbmC9FagXWzq1avJn4 2OpQ== X-Gm-Message-State: ALoCoQkvmBxOLyAPvyh+EXFDx/fvHSSAdEXJXogYFdjeFirEJ/N723Xk3mRHx/lTfuBaj/kkhiN+ X-Received: by 10.195.11.101 with SMTP id eh5mr50450479wjd.104.1448550372654; Thu, 26 Nov 2015 07:06:12 -0800 (PST) Received: from amolinux.invoxia.net ([94.228.188.198]) by smtp.gmail.com with ESMTPSA id gl4sm1079618wjd.17.2015.11.26.07.06.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Nov 2015 07:06:11 -0800 (PST) From: Arnaud Mouiche To: Caleb Crome , Roberto Fichera , Markus Pargmann , Fabio Estevam , "shawn.guo@linaro.org" , alsa-devel@alsa-project.org, broonie@kernel.org, lgirdwood@gmail.com Date: Thu, 26 Nov 2015 16:05:38 +0100 Message-Id: <1448550341-11765-4-git-send-email-arnaud.mouiche@invoxia.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1448550341-11765-1-git-send-email-arnaud.mouiche@invoxia.com> References: <1448550341-11765-1-git-send-email-arnaud.mouiche@invoxia.com> Cc: Arnaud Mouiche Subject: [alsa-devel] [PATCH v2 3/6] ASoC: fsl_ssi: Save a dev reference for dev_err() purpose. X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Most of functions only receive the ssi_private reference and don't have a knowledge of 'dev' pointer, even for debug purpose. Signed-off-by: Arnaud Mouiche --- sound/soc/fsl/fsl_ssi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index b34c09f..243c9af 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c @@ -191,6 +191,7 @@ struct fsl_ssi_private { struct fsl_ssi_dbg dbg_stats; const struct fsl_ssi_soc_data *soc; + struct device *dev; }; /* @@ -1329,6 +1330,7 @@ static int fsl_ssi_probe(struct platform_device *pdev) } ssi_private->soc = of_id->data; + ssi_private->dev = &pdev->dev; sprop = of_get_property(np, "fsl,mode", NULL); if (sprop) {