From patchwork Sun Nov 4 14:39:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10666889 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 3E8C5109C for ; Sun, 4 Nov 2018 14:39:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2FDD729763 for ; Sun, 4 Nov 2018 14:39:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 245D929913; Sun, 4 Nov 2018 14:39:25 +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 C710429763 for ; Sun, 4 Nov 2018 14:39:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729988AbeKDXyh (ORCPT ); Sun, 4 Nov 2018 18:54:37 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45386 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729927AbeKDXyf (ORCPT ); Sun, 4 Nov 2018 18:54:35 -0500 Received: by mail-wr1-f65.google.com with SMTP id k15-v6so3679989wre.12 for ; Sun, 04 Nov 2018 06:39:21 -0800 (PST) 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=sa9tdyCtwMS1Esylht9sZQmadjvvsyBLS2gbb5MUfVE=; b=QFkqlvK8BI5VsusS9KwrpuC3WKc3Cv3KFJTOtWNx3SRwCK9ZOfphSPhBdAoJ8ZKmWH WAxg+O21zRYlk6ofip/gUL2CTHht9Ivvoodj24Oo5NDbfxxtfXmsnEqNneNjk7Zn1Omh s6tBw3CMtVhLG6Hl6EiBwirb5GbVu/WIVIyG6T/cw6FR+YCPeoFZAZprHw399fY8GERw BsFX8+u9ED6WEpJ3xzBUscuQrsjh7eYfiz7DaSqGRT2ugzuf0o3m5ggIMtDQ3JllMOLd gGdxfDnnoBvK5Jbb/mESQL+Y7YZ7kxz8I17TjsBo/XTU7BytrNJNxgooIc+dqruog8Vr emKw== X-Gm-Message-State: AGRZ1gK7WqUt88S5SwZriDSzVGcVtQ8FQnkFHppSQmqoHyR5RPUx/s4X UegZv0iz7AZQgrN5U1XfhvnaoRIH9O0= X-Google-Smtp-Source: AJdET5fQIBsT8xUYRSccNFW32ZYGyX8Y1TnfuvvvcEzUHOQ6GH2FKZMfcO9ktafM4W/XhRblsO1ZgA== X-Received: by 2002:adf:c550:: with SMTP id s16-v6mr16154494wrf.264.1541342360288; Sun, 04 Nov 2018 06:39:20 -0800 (PST) Received: from localhost.localdomain ([151.66.25.206]) by smtp.gmail.com with ESMTPSA id w18-v6sm4203591wrn.66.2018.11.04.06.39.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Nov 2018 06:39:19 -0800 (PST) From: Lorenzo Bianconi To: jic23@kernel.org Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 3/7] iio: imu: st_lsm6dsx: remove static from st_lsm6dsx_set_watermark Date: Sun, 4 Nov 2018 15:39:02 +0100 Message-Id: <732b033d7ea91401e674da6de67316277826e96f.1541341926.git.lorenzo.bianconi@redhat.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: References: MIME-Version: 1.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_set_watermark routine in order to be reused supporting st_lsm6dsx i2c controller Signed-off-by: Lorenzo Bianconi --- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h | 1 + drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h index ec204d3b4b1f..ac4cbbb0b3fb 100644 --- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h +++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h @@ -185,6 +185,7 @@ int st_lsm6dsx_probe(struct device *dev, int irq, int hw_id, const char *name, int st_lsm6dsx_sensor_enable(struct st_lsm6dsx_sensor *sensor); int st_lsm6dsx_sensor_disable(struct st_lsm6dsx_sensor *sensor); int st_lsm6dsx_fifo_setup(struct st_lsm6dsx_hw *hw); +int st_lsm6dsx_set_watermark(struct iio_dev *iio_dev, unsigned int val); int st_lsm6dsx_update_watermark(struct st_lsm6dsx_sensor *sensor, u16 watermark); int st_lsm6dsx_flush_fifo(struct st_lsm6dsx_hw *hw); diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c index e3ebd04d8078..3433a5b6bf4d 100644 --- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c +++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c @@ -600,7 +600,7 @@ static int st_lsm6dsx_write_raw(struct iio_dev *iio_dev, return err; } -static int st_lsm6dsx_set_watermark(struct iio_dev *iio_dev, unsigned int val) +int st_lsm6dsx_set_watermark(struct iio_dev *iio_dev, unsigned int val) { struct st_lsm6dsx_sensor *sensor = iio_priv(iio_dev); struct st_lsm6dsx_hw *hw = sensor->hw;