From patchwork Tue Dec 4 18:33:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akshu Agrawal X-Patchwork-Id: 10712369 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5F63C13A4 for ; Tue, 4 Dec 2018 18:33:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 52A3F2C3E4 for ; Tue, 4 Dec 2018 18:33:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 475AF2C434; Tue, 4 Dec 2018 18:33:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,MISSING_HEADERS,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 689D12C3E4 for ; Tue, 4 Dec 2018 18:33:28 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 2A83F267B61; Tue, 4 Dec 2018 19:33:27 +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 22D45267B73; Tue, 4 Dec 2018 19:33:24 +0100 (CET) Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-eopbgr750051.outbound.protection.outlook.com [40.107.75.51]) by alsa0.perex.cz (Postfix) with ESMTP id 4F915267B4E for ; Tue, 4 Dec 2018 19:33:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0/HnY920aSoED7Sp4b4ntYVwVWA+mVzTFSbBy55W+xo=; b=kp6wDOwkojb2F+4ZjmyHZ5u7/AvQqzKl3P0T5x3Xng0iknpEL9qz7zP6pEkX20RHkm/U93CE2RqNx6uArv5kY197uKJKVUIhOZbRIz778g79cdddUxwtOsf4VNXd8i25pEaqPrxe+co/fuHW1VZ31UsLADubS2ePZzv4sISOSB8= Received: from BL0PR12MB2355.namprd12.prod.outlook.com (52.132.10.161) by BL0PR12MB2562.namprd12.prod.outlook.com (52.132.27.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1382.22; Tue, 4 Dec 2018 18:33:14 +0000 Received: from BL0PR12MB2355.namprd12.prod.outlook.com ([fe80::6d6b:9a9e:71b6:1c0e]) by BL0PR12MB2355.namprd12.prod.outlook.com ([fe80::6d6b:9a9e:71b6:1c0e%3]) with mapi id 15.20.1382.020; Tue, 4 Dec 2018 18:33:14 +0000 From: "Agrawal, Akshu" Thread-Topic: [PATCH 1/2] ASoC: Fix function return type Thread-Index: AQHUi//Ro7UpefvJDUiblqpXWVc9pw== Date: Tue, 4 Dec 2018 18:33:14 +0000 Message-ID: <1543948103-20752-1-git-send-email-akshu.agrawal@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BMXPR01CA0048.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::34) To BL0PR12MB2355.namprd12.prod.outlook.com (2603:10b6:207:4c::33) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Akshu.Agrawal@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.156.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BL0PR12MB2562; 20:1V/ts1If/RTrXtx8kzcS0UqyzDg0mgxxAx3/E0IXcUAtpiSYHMQhrlfG1hjM9f6GMNQl8VBzaySF/KauvF49P23cfaPuJQb7u+0Uk75PqdWRUhgIXrJCkq1kiuBGfEPqtoX3i2ob/kQXp1SsPgbTLhdlzg5JrRmIPSIkBRgMUHQGMbc0Y2nl92EnbK9UXGAfKyE43TKV5Uo7e+ubOicgGBTZOV2sRzx7qB5fQwMz4B9axJ/o3UpEPr8kHZCofy+6 x-ms-office365-filtering-correlation-id: 6c9cb9f4-5fe9-483a-3f2c-08d65a16f34f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:BL0PR12MB2562; x-ms-traffictypediagnostic: BL0PR12MB2562: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231455)(999002)(944501493)(52105112)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123560045)(201708071742011)(7699051)(76991095); SRVR:BL0PR12MB2562; BCL:0; PCL:0; RULEID:; SRVR:BL0PR12MB2562; x-forefront-prvs: 0876988AF0 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(136003)(366004)(39860400002)(396003)(346002)(189003)(199004)(86362001)(6436002)(81166006)(81156014)(6486002)(14454004)(7736002)(8936002)(36756003)(305945005)(71190400001)(256004)(97736004)(71200400001)(102836004)(1671002)(25786009)(26005)(106356001)(39060400002)(2616005)(68736007)(105586002)(486006)(6512007)(186003)(59246006)(53936002)(4326008)(109986005)(8676002)(54906003)(316002)(99286004)(52116002)(5660300001)(72206003)(478600001)(386003)(476003)(66066001)(6506007)(2906002)(6116002)(3846002); DIR:OUT; SFP:1101; SCL:1; SRVR:BL0PR12MB2562; H:BL0PR12MB2355.namprd12.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: QZ5X/qbG9oWm5uNO+laXYyCQaRAzMtth3nxX7wB586Kxbigo77FwptNquSQclHYRGObE/IGaCMfTfGIsDoxhQQKl2A3ngsh6Zl/Em+4g0FaCKkGUZ0zgF8OZqPlXGW4ASBt/RSMtVwpZhsZYIWsz0sqPvxNz6z+tnnJMA0t5vy/ADnPmxs92/RlwyT6+fvfPj0BldnWTMcfiOtAMvrqSmb5vLeu1Y08Py2n/uG6Oln4Dgb19+LEEdisVkEyvhJROiI0RFJwcn+qNeydH32bP/NuF7wh6BEzQZ/bKpUCUcXm0i2QQnrzifGnSwBWYmFXsZxV0PmFhpUtqxum86XkvAf24jaSHKiKfzrQzPNfZryk= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6c9cb9f4-5fe9-483a-3f2c-08d65a16f34f X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Dec 2018 18:33:14.3625 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB2562 Cc: "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , open list , Takashi Iwai , Liam Girdwood , "djkurtz@chromium.org" , "Agrawal, Akshu" , "Adam.Thomson@diasemi.com" , Mark Brown , "Deucher, Alexander" Subject: [alsa-devel] [PATCH 1/2] ASoC: Fix function return type 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Function returns -1 on error and the return type should be int. Signed-off-by: Akshu Agrawal --- include/sound/soc.h | 2 +- sound/soc/soc-io.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/sound/soc.h b/include/sound/soc.h index 8ec1de8..591d743 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -1341,7 +1341,7 @@ static inline int snd_soc_component_cache_sync( /* component IO */ int snd_soc_component_read(struct snd_soc_component *component, unsigned int reg, unsigned int *val); -unsigned int snd_soc_component_read32(struct snd_soc_component *component, +int snd_soc_component_read32(struct snd_soc_component *component, unsigned int reg); int snd_soc_component_write(struct snd_soc_component *component, unsigned int reg, unsigned int val); diff --git a/sound/soc/soc-io.c b/sound/soc/soc-io.c index 1ff9175..d08f5b1 100644 --- a/sound/soc/soc-io.c +++ b/sound/soc/soc-io.c @@ -38,7 +38,7 @@ int snd_soc_component_read(struct snd_soc_component *component, } EXPORT_SYMBOL_GPL(snd_soc_component_read); -unsigned int snd_soc_component_read32(struct snd_soc_component *component, +int snd_soc_component_read32(struct snd_soc_component *component, unsigned int reg) { unsigned int val;