From patchwork Thu Nov 26 14:07:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Mouiche X-Patchwork-Id: 7707331 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 AFD5DBF90C for ; Thu, 26 Nov 2015 14:08:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D2A7920790 for ; Thu, 26 Nov 2015 14:08:27 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id A714A20666 for ; Thu, 26 Nov 2015 14:08:26 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 188D72667B2; Thu, 26 Nov 2015 15:08:25 +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, 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 B32A1264EAA; Thu, 26 Nov 2015 15:07:59 +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 320E5261A7C; Thu, 26 Nov 2015 15:07:57 +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 A9C0E261A90 for ; Thu, 26 Nov 2015 15:07:50 +0100 (CET) Received: by wmww144 with SMTP id w144so22932981wmw.1 for ; Thu, 26 Nov 2015 06:07:50 -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=Z0/+Je+HI7/7AGln5ItOEBVTu68kiGYnuhyOpGnOFnGn2rrIsI2qCxZsQKoSz71m/9 EMva3JwHEL2Fc8KMhgcV+eOw7v4oFubp/lLXgREepx7WJprpzIfNn0oNf9SNDTnM1p70 6DUgHAofEacQwJHLppAAn7DMhSYevpvIeChxgcCVhE4ck2M1zI4L4aHiP8mVsUr4spqq fUVmgG3BJCA5OvNAzDZsccUZ6iXCtBs7/qXbuWu+nf/OUxj0cLMspXBXSEesKrQA5Ubi sXTCWQNMLXb9jQQ7orJfsbIyBjRqybmcP8+l96PXnHlADpNv4MDmlJFI3EOY/B1MewYD Becg== 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=RqYmRVRCc1rY8d9z5lF0ywzFmXHV+QegAWn6XnFT0WXIC7gluODv1EB/H2rEKy6Kef TPJ9wnyGdx45GBdUUtFjEC3OzLx70aDtzB8teFa+zGTrqzih47nUxdTfoQea2QcbF1LM kela6ejG2pFHh+PiNQqKTBNZNk2SPL8AuJoajX1uNkHjtxgDG5tAeWkzbub/ogkMumig QQc8y/N4vRbV1vMHbenkHrHwWG3oPVrsai6yqROd+IAUH14Dbl1qMNFVt+Z07P8VDKaj 3hBYBoFF4x/HAfSa9/2JSykU5svDYwBTox+x1vhSPGfKHTHk4M1IKGop5uyfBw3WVdQO oUtw== X-Gm-Message-State: ALoCoQn1uoYYAofIGBDq7ZnE5zjWdBn1F1RSVFyPDz7R9cyx9hor/OcWByukFX0vRam9zUlbl713 X-Received: by 10.194.77.51 with SMTP id p19mr48578286wjw.159.1448546870474; Thu, 26 Nov 2015 06:07:50 -0800 (PST) Received: from amolinux.invoxia.net ([94.228.188.198]) by smtp.gmail.com with ESMTPSA id v196sm2907777wmv.10.2015.11.26.06.07.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Nov 2015 06:07:49 -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 15:07:19 +0100 Message-Id: <1448546842-4584-3-git-send-email-arnaud.mouiche@invoxia.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1448546842-4584-1-git-send-email-arnaud.mouiche@invoxia.com> References: <1448546842-4584-1-git-send-email-arnaud.mouiche@invoxia.com> Cc: Arnaud Mouiche Subject: [alsa-devel] [PATCH 2/5] 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) {