From patchwork Fri Nov 16 22:49:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shreeya Patel X-Patchwork-Id: 10687105 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 7AC7C1747 for ; Fri, 16 Nov 2018 22:49:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6131D2CB7B for ; Fri, 16 Nov 2018 22:49:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 54BE92CBC8; Fri, 16 Nov 2018 22:49:15 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC17C2CB7B for ; Fri, 16 Nov 2018 22:49:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726035AbeKQJD3 (ORCPT ); Sat, 17 Nov 2018 04:03:29 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:41644 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725995AbeKQJD2 (ORCPT ); Sat, 17 Nov 2018 04:03:28 -0500 Received: by mail-pl1-f194.google.com with SMTP id u6so908219plm.8; Fri, 16 Nov 2018 14:49:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=xa7mMwilfARzNlzgBshZrLuLhTmZAU6FLzH06agvJF0=; b=pWhO7j8lshrUTTsoIXqfiRcfWRcVjYemY6CB23DWYNUKul6JwjHPxhhzYxOFZHWvDq UWBKEC+EW5Bo8gtX7UCzxrhJz5G2TUaslN1GcXjJ1XlxQK6NcdZvtJoJ6uNpb+bA1yFq M1QgnN6QV35bz8unapINX//xRiq8w2KytXjlpaxG7/fjt64yNuDtMXqlPdOBja5naxGA j3Dt+0rty+GRUgb/x4k6AQosJTAuyLTW98G2XIOdpq7Dk8DhYdr+fdo9oDUCceWjkqLJ KUg+hHdyjlTcjKJwHCMXMrL1mX7rIvkCWENNrZ03foY1oxztbMbPu9Ki25D+7ho3wN90 366g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=xa7mMwilfARzNlzgBshZrLuLhTmZAU6FLzH06agvJF0=; b=NQYtpSoYcVL+5KLezL56qGu/3NkGmifBcuIbaeaTpXNeO0cRz/pXfZNflNVOVX//pZ l4J3Ve7yZY9WODEFpOAyhM3lRIdnUpZ8lJHAiLseNDt9aOXKnsyiKVmwWIeGwIkxuCfl Qb3cg9pxDlKD94E8VvPA7+oYe8gJOs3kG6LZiBcoBdrFNuc2nX8qoqMPBorHcIpJQgfQ XwzRWY/UkZ0cEXvLerO25kPuQGbVufU/j5uSWtBPh0NqPDHFyDo51ZBounD8/CHqhi4+ Dib776OKwF1Opb+q9Fs97pMwrB/R+yxH0AxhmmCmGKselwcj2V8ONZ1Pqgiuj8QaD/+8 iDXg== X-Gm-Message-State: AGRZ1gK0bU7dWqzmsNvkaS+jKC/yxOdhZhBz3di86/vNf1GHiNW+pRE5 pVn8DFUK6TdWXlmkl7BQAhY= X-Google-Smtp-Source: AJdET5eRT/xt0lA0riteQjBPIZFI9UpvfR1OOE3qpm4zOVqrJ9rSAgI/j+HihLKsaybwpIahHc/dsw== X-Received: by 2002:a17:902:aa8d:: with SMTP id d13-v6mr12936705plr.74.1542408553213; Fri, 16 Nov 2018 14:49:13 -0800 (PST) Received: from localhost.localdomain ([103.212.140.154]) by smtp.gmail.com with ESMTPSA id 27-v6sm45417607pfm.36.2018.11.16.14.49.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 14:49:12 -0800 (PST) From: Shreeya Patel To: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/7] Staging: iio: adt7316: Set the data field Date: Sat, 17 Nov 2018 04:19:07 +0530 Message-Id: <20181116224907.24376-1-shreeya.patel23498@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP adt7316_i2c_read function nowhere sets the data field. It is necessary to have an appropriate value for it. Hence, assign the value stored in 'ret' variable to data field. Signed-off-by: Shreeya Patel --- drivers/staging/iio/addac/adt7316-i2c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/iio/addac/adt7316-i2c.c b/drivers/staging/iio/addac/adt7316-i2c.c index f66dd3ebbab1..856bcfa60c6c 100644 --- a/drivers/staging/iio/addac/adt7316-i2c.c +++ b/drivers/staging/iio/addac/adt7316-i2c.c @@ -35,6 +35,8 @@ static int adt7316_i2c_read(void *client, u8 reg, u8 *data) return ret; } + *data = ret; + return 0; }