Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752170AbdCCUl0 (ORCPT ); Fri, 3 Mar 2017 15:41:26 -0500 Received: from mail-sn1nam01on0125.outbound.protection.outlook.com ([104.47.32.125]:19323 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751882AbdCCUlN (ORCPT ); Fri, 3 Mar 2017 15:41:13 -0500 Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=maximintegrated.com; From: Ryan Lee To: , , , , , , , , , , , , , , , , , , , , CC: Subject: [PATCH 05/10] Replaced pr_err by dev_err. Modified debug message Date: Fri, 3 Mar 2017 23:52:43 +0900 Message-ID: <1488552768-14901-6-git-send-email-ryans.lee@maximintegrated.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488552768-14901-1-git-send-email-ryans.lee@maximintegrated.com> References: <1488552768-14901-1-git-send-email-ryans.lee@maximintegrated.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [222.234.201.146] X-ClientProxiedBy: KL1PR02CA0031.apcprd02.prod.outlook.com (10.165.15.41) To CY4PR11MB1367.namprd11.prod.outlook.com (10.173.16.149) X-MS-Office365-Filtering-Correlation-Id: d8f64c10-72b5-40f8-ad3a-08d462452562 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(48565401081);SRVR:CY4PR11MB1367; X-Microsoft-Exchange-Diagnostics: 1;CY4PR11MB1367;3:BQYldJ06/Ce6LNXZQZLqjeVS6Lc+/bD2SGbKN+N7/Rfn4MVzc1JQDdvlrBptdjBVMK7Os+QQ7AvfXtQ/CFXpnyjlrBgCdQTjW13kaEff3POz7T2B7/985mJmfbAct4/UnGT0HNZI95kln4Dlz2j9uE00GF3gN/W0kdbfxBoFLQ1VhVKtI/ZqdxUD+9gHF/pO/psW/8ILXGmHHKf025Z6N5lb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CA2Etyf9r1oAlNsNFrHNaId5PiazdfbBHG42Kw8kSOGlewAJVvO8WDWEXMWUdbBTu7dYKo5WOqkKFD5V9kb4busNVPENmRXGJNzYUz7NRgfZjnn9i5KmQQD2dAbHH/UnTdyMXuSf6zuYtlnksQxwjH9D6i3P2ElehdDU8KBxFkt3NNOkFUuzn7BIWiltwXe6aksyCa4ylqB3mUeq9tRmWNMbr+DtOyMMuNW4O1Ny2t8dqJNNLq4prR1nLM+YaUkVlaPMoiccFvX1/7XAGs9TbNh+OMFS3YbNvfbEBjvSErEaOm6uGAVlm X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(108721460000369); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123555025)(20161123564025)(20161123558025)(20161123562025)(6072148);SRVR:CY4PR11MB1367;BCL:0;PCL:0;RULEID:;SRVR:CY4PR11MB1367; X-Microsoft-Exchange-Diagnostics: 1;CY4PR11MB1367;4:Ou2vs8zJSQ1Os2YiamoufXFPH0JO3jBHf/ZxSUwqJOEwSgNkqYAdafBwIgjwx8PKHF4FiQDGSFY5uzZrr4O079t9TmAs0KlTI79xcKvwmjYSzZ+xqdKiWvU+NpsCvsvGHSwG6lU11R5gCCttRy8iCgHEv7/9vjFKosxHqCSJ/9Icf/8k3b6tCD/o7WXQU1rBCnGaXS9FcZbxNx9q/HFL6wpLp08a4CJsL/glpOXb7NoKivu1R6W+MzfrNJregHI9pB3bwtrs30ZAI4t41PEXjgrEVTar9iPsZL5fqnReL+As39iQNcrjoy38n+MiOhRxbn9ZrnxLAs6F88o0ZRuZ2cWSxBqZiALPU3iNTMZhZCBBZBOqvFPx0D0/4u3WTCZlGbEa4dPAU5geIpmOhBv00FYw9UBaw2MilotHdf0XB2J45DYZ6qrcqmCfNHvGPI46pXoCHZJFlhdN7tdyuWY2eDkfD+GrIJdc2I79VnlAieMOCC+ujvoy93Tks83I3guMF5ZyKuEYcxmDb83ZHB3D5rXG2LEPYgvs5tdukn+h7oA3APMK2STtbDjS4Ax6wr7bVC9LpB7UrqPV60HxWlsG5/GN8GtRVBLByygHDIIdlwa6TptoCvdEGqcai19SzMxtDxYmCP9u11Q0XyklAXNLmj8BSyTMX9qPcnp8tiLno2g= X-Forefront-PRVS: 0235CBE7D0 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(39850400002)(39410400002)(39840400002)(39450400003)(39860400002)(33646002)(86362001)(50986999)(5003940100001)(7416002)(25786008)(76176999)(2201001)(50226002)(189998001)(6512007)(2906002)(6486002)(15650500001)(6506006)(6666003)(53936002)(42186005)(53416004)(3846002)(305945005)(66066001)(6116002)(48376002)(50466002)(92566002)(8676002)(7736002)(47776003)(36756003)(2950100002)(5660300001)(4326008)(38730400002)(81166006)(921003)(1121003);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR11MB1367;H:ryan-Lenovo-IdeaPad-Z510.maxim-ic.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR11MB1367;23:OxWWw0RgLEKMcUbwDdlGTLAdMyEHBGSL0VqYRtc7u?= =?us-ascii?Q?EUZO3gtmdqxsAhR2artzYvej0gzcwrpYSqPO2CcvNMUsDKkuAVmz+r78lX5E?= =?us-ascii?Q?irahQNS9Kc4RQOK4AedRo5MBld4LCcMuFgw7FhXiz4j8B13oUv7zgwfcCnlx?= =?us-ascii?Q?Fs9XG7tig+Kb7tEW2kWeDx+Hv4I71S+8U1LkQaHo4v7bc/rR/0zJsJakb8pw?= =?us-ascii?Q?dHngSNVDc/hv4p5l0SS/rxQTrCVI7FSCdV5VxqyxeDVvjOcMkhfYh0kMSpFc?= =?us-ascii?Q?UqgnLvXKNk42psiPH+QrRidxacFj+0kILqaTv4DtoQOeFORl/DuZEjVUZIzQ?= =?us-ascii?Q?Ns6Ztwje/o1zb+GGZdBWknDmdx9vHh7bAgamS+WSbruSqgn0q/tFt7gEmfWH?= =?us-ascii?Q?zU77vxewF9IWjR4GSInpE6MonmaFZH5GmgTv4V4nW8GrSU+zu1AEnr19uwdH?= =?us-ascii?Q?F+nWAX54t38htxJY7USZXGAjQlNwEK5EZ9+NaZCysjVllzezX7iYCqBqcRZd?= =?us-ascii?Q?ZJso4PxLDLKEbyHXuA535cdx7PDk6Xzc6aYXFgiMwuvo3cjCJgaJtdvp1FEn?= =?us-ascii?Q?nwA5WdCPKLvLWcUzjghpgkaN4QCh9IDiDlde0jmkoC1Gd04CTQ8ZVLldkOkM?= =?us-ascii?Q?eiZ35wHcavNT4NLfs2ajTXrNGmrOxHYGgiWKYvw+70xc/+3q7kbJ6CkvIf2w?= =?us-ascii?Q?KIFA5bBKF9AakIgzmAraH1BrzjUxZ1gZJcQUDmUHKfVCJOtbooDrtj70Ttfj?= =?us-ascii?Q?KhdciueBptOvqt94AaG8+8kXhXkkbhgXKgos2b8dweVX0EIvEBXKnCG/K2sQ?= =?us-ascii?Q?GEMhb9HfWWoCXrBVaKGfOVi13UAxFsM2ywFsiOqwxlqK90TC8+rg3h/1E2Oj?= =?us-ascii?Q?SboAPIybU0wYSNcEdG9dlXRdnIN6ViKQj8hPZK/nrx5vjCjkopEhK64Ja8b/?= =?us-ascii?Q?txstbMPc7WOj9YhwHbsBkwAoebQJdvQz0CUuerZOmYHpStwh8f/QeMBtihdZ?= =?us-ascii?Q?VpXiaDkxH3wtMbJK/QoD4h0OpqIy2dinIev6QrFz2JGP3BSraG4npfx3SVS5?= =?us-ascii?Q?tEisaA9myMvHUdFDv0tsViODLjw/fzfptBnZYsUbFJTQaa0sUykjlzWHxm7w?= =?us-ascii?Q?wCm2JKn8lQ=3D?= X-Microsoft-Exchange-Diagnostics: 1;CY4PR11MB1367;6:N03QV45mn/w1O6+dA64IhDhlfUSh8bra6uBvc2tdUWMeTp/3iGwtBULXv1Fft2gsn+Z6Ei4wngJkJr9Fvo76SxrREQSVGi5HQ+l3CWny5GUYNKYu/M2pZaGNFKsCmlcxGY7a6TeGDGWpqYtbFecB9alhNT+pC7QBnl+SfxzbM9T/KpnKpb2oKPBgmQpol4avdaxWo6ZpUJ58p7a3pXwvHVCSCT7I6VJ4KxkhoBdvng6oueTU8qHwytY57KfaDTipQ4F0WbX7FwptWsi/aS90DfoXBGzPiSnC2sHpym0Y7lQ5Lx/YytlpMluac2oBBw9rMCUbnk2LvVbKomHHl7YTujRV/x6YmXbq8v+oKCecyLQhlT5J4FAwp8k33JaEv/qKOVz+ve+DkOoKZ3Xawx3/3w4ARblNej3qdxIsHqGCqUo=;5:HraxszYLgWw5M8Wv7pNTiO+4ygG+/vZnNFffgfQpOogP4itqH1nyrR1antSdFgNs0Df3sgsFLYTEisTHOAHNIYA5i5GUhfWhszNSuC3kr8WQnMhqrxatR+fDH5xba4WS84iS79lSMhrNcnWVszF/EqosUazboYAkvsS5L/UNv9s=;24:UfPv8MYOI9geAMm77EVMd23I7kalHUbgUjZvqew1bqVqu8xAyRsO3y9mFMqbLtzT5lxMHOXQJYBa0b1EItOGIFUunEkDfzq2H6yiouosSl0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY4PR11MB1367;7:9tVwWsz+7oI19zyib83s2xLXXBKpYEgeRvcoWzDB9TnU/62q3YSpWtB0N3djrd/RVsdSKpfHqsEhM3IqV7f17T0C2Ah+LXf1MwV+Rxh5hMY5qahzPdcDjCyogF0BXvMjw7s4VOhs9ACXjjYMAks6WuDlxAAW0OeOzyCsGN++nArNixkimn9fq8jk8kbhLJsNt4XSfrUfZeGZJaRzNA9xri5R+vZMd2j27N7vwlDHd9ptYhfqdcQx3NghW3aSL58rVuys0Wqyt7pVPrSyrvAFSC2x4Xy3JB1XlM0SROVj1Is86tBgJPalhNTvDfXtk643x57SbaF7Onu55ybxZtfURg== X-OriginatorOrg: maximintegrated.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2017 14:54:02.1478 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR11MB1367 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2429 Lines: 68 Signed-off-by: Ryan Lee --- Replaced 'pr_err' by 'dev_err'. Modified error message. sound/soc/codecs/max98927.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/sound/soc/codecs/max98927.c b/sound/soc/codecs/max98927.c index efc761b..0abf6d3 100755 --- a/sound/soc/codecs/max98927.c +++ b/sound/soc/codecs/max98927.c @@ -254,6 +254,7 @@ static const int rate_table[] = { static int max98927_set_clock(struct max98927_priv *max98927, struct snd_pcm_hw_params *params) { + struct snd_soc_codec *codec = max98927->codec; /* BCLK/LRCLK ratio calculation */ int blr_clk_ratio = params_channels(params) * max98927->ch_size; int reg = MAX98927_R0022_PCM_CLK_SETUP; @@ -268,8 +269,7 @@ static int max98927_set_clock(struct max98927_priv *max98927, break; } if (i == ARRAY_SIZE(rate_table)) { - pr_err("%s couldn't get the MCLK to match codec\n", - __func__); + dev_err(codec->dev, "failed to find proper clock rate.\n"); return -EINVAL; } regmap_update_bits(max98927->regmap, @@ -327,12 +327,12 @@ static int max98927_dai_hw_params(struct snd_pcm_substream *substream, max98927->ch_size = 32; break; default: - pr_err("%s: format unsupported %d", - __func__, params_format(params)); + dev_err(codec->dev, "format unsupported %d", + params_format(params)); goto err; } - dev_dbg(codec->dev, "%s: format supported %d", - __func__, params_format(params)); + dev_dbg(codec->dev, "format supported %d", + params_format(params)); /* sampling rate configuration */ switch (params_rate(params)) { @@ -364,8 +364,8 @@ static int max98927_dai_hw_params(struct snd_pcm_substream *substream, sampling_rate |= MAX98927_PCM_SR_SET1_SR_48000; break; default: - pr_err("%s rate %d not supported\n", - __func__, params_rate(params)); + dev_err(codec->dev, "rate %d not supported\n", + params_rate(params)); goto err; } /* set DAI_SR to correct LRCLK frequency */ @@ -490,7 +490,7 @@ static int max98927_digital_gain_get(struct snd_kcontrol *kcontrol, struct max98927_priv *max98927 = snd_soc_codec_get_drvdata(codec); ucontrol->value.integer.value[0] = max98927->digital_gain; - dev_dbg(codec->dev, "%s: spk_gain setting returned %d\n", __func__, + dev_dbg(codec->dev, "%s: digital_gain setting returned %d\n", __func__, (int) ucontrol->value.integer.value[0]); return 0; } -- 2.7.4