From patchwork Thu Aug 30 20:52:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10582793 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 0B5BE14E1 for ; Thu, 30 Aug 2018 20:53:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F0C9528704 for ; Thu, 30 Aug 2018 20:53:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E48002C3F9; Thu, 30 Aug 2018 20:53:23 +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=-7.9 required=2.0 tests=BAYES_00,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 94CCC28704 for ; Thu, 30 Aug 2018 20:53:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727227AbeHaA5X (ORCPT ); Thu, 30 Aug 2018 20:57:23 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:40203 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725893AbeHaA5X (ORCPT ); Thu, 30 Aug 2018 20:57:23 -0400 Received: by mail-wr1-f68.google.com with SMTP id n2-v6so9264753wrw.7 for ; Thu, 30 Aug 2018 13:53:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=PnvVadFkRuujYDOe3FcHH2lsVK6jnV4D5eBBvEE9sDA=; b=rHZjJc0CWDDZxXX32ybLE6K42IYF3PRT49sYdzAHBPt4NLXdKOLuHdBqjCGqIV8vAb sgaf8CBfykjJn32xQYto6NYEkt4Dgme6iKM/BBINjo2aA16tX+861EqXx4zWnNVPcoUl xDeLCYJoCIpvuogzv028SrJDoeCsrydrSjnu28Rl/32Q7GEOXmt57h+eYVan2YKG0omq iQZ9WBCqNGScGHKn7i7DM8CstfkWIS/2rWR4Twj5g8I5V8EWEPlxvATt2mQ9nG2vs5ba 21+xCI62h2GEwOBW72kwwpladpyIEJoOWcG2634Gb/I9cE0qJx+sTliUKuItzEmZoR9Q N8gw== X-Gm-Message-State: APzg51AxhumSG3yiUqJ3TsL5usSrNAVhoLEzuMIXBQyBMHwgJWey6e/n UtoZEUfsWtjTHBq0gUbNvkiwKlLZbL8= X-Google-Smtp-Source: ANB0VdaKQT4BTg79ndfjPJn1j+uMmg4D3EtpPXfTcYVFw9M16jlagaELV3KpvdaWzmOiAyX4sWmAzw== X-Received: by 2002:adf:b1db:: with SMTP id r27-v6mr9004065wra.95.1535662401494; Thu, 30 Aug 2018 13:53:21 -0700 (PDT) Received: from localhost.localdomain ([151.66.53.29]) by smtp.gmail.com with ESMTPSA id k35-v6sm13178125wrc.14.2018.08.30.13.53.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 13:53:20 -0700 (PDT) From: Lorenzo Bianconi To: jic23@kernel.org Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/5] iio: imu: st_lsm6dsx: make st_lsm6dsx_check_odr() non-static Date: Thu, 30 Aug 2018 22:52:56 +0200 Message-Id: <20180830205259.7029-3-lorenzo.bianconi@redhat.com> X-Mailer: git-send-email 2.18.0 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 Remove static qualifier from st_lsm6dsx_check_odr() definition in order to use it for the support of new devices Signed-off-by: Lorenzo Bianconi --- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h | 1 + drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h index a0a6c07aad62..6cf806f10787 100644 --- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h +++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h @@ -180,5 +180,6 @@ int st_lsm6dsx_flush_fifo(struct st_lsm6dsx_hw *hw); int st_lsm6dsx_set_fifo_mode(struct st_lsm6dsx_hw *hw, enum st_lsm6dsx_fifo_mode fifo_mode); int st_lsm6dsx_read_fifo(struct st_lsm6dsx_hw *hw); +int st_lsm6dsx_check_odr(struct st_lsm6dsx_sensor *sensor, u16 odr, u8 *val); #endif /* ST_LSM6DSX_H */ diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c index 394bcd3719e0..5a43d8139950 100644 --- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c +++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c @@ -398,8 +398,7 @@ static int st_lsm6dsx_set_full_scale(struct st_lsm6dsx_sensor *sensor, return 0; } -static int st_lsm6dsx_check_odr(struct st_lsm6dsx_sensor *sensor, u16 odr, - u8 *val) +int st_lsm6dsx_check_odr(struct st_lsm6dsx_sensor *sensor, u16 odr, u8 *val) { int i;