Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp494446pxb; Wed, 24 Feb 2021 07:32:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2BKvyySXn8GqdpQBHX6aTmUV80uJP65fO0rob40uOvJ/scOfoIw0hHvucqEVKzYsvI6FK X-Received: by 2002:aa7:c410:: with SMTP id j16mr10140467edq.135.1614180759100; Wed, 24 Feb 2021 07:32:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614180759; cv=none; d=google.com; s=arc-20160816; b=BhOsWaRp4E5eVqu/2J63oe61wfiEthzMyWMXTmTJ5MGW6yrwc8IPyc0O8AU+AZE91P i3r0E/3D1jrXXitjRhsdxr+gPTXySA/rBUmVxlsbJGbvcYjOxfI8hLbM1xqsN1B3LkIm 7stPY54n6opNHTeCCE6bW63Hzq8nU1UdZ4bzd3LRv8XTCEusqxUkfmGU+sS/Bqvyrklq pwIQqA5gpucxYG24tHcWar9Fhr19hD6kBpN8IcdrTi59jziuX8TQYXu3Rt2eqHu0PmoE 5MABqg0zQg6KLtbEWaTjfLbp2gqBsLF9+fgd26ElWdy9q3L1J2HAQcMhs7uL078GoEBy davg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=HokQBU/ghtYugnhNg9omsYh8OE2+9P/WNHGHi5BtboA=; b=fNbb1D1crVA61DGc1kVGRoGkWXbA/NpG7OmuweLU90G014DZkU3NIcUt/lV2ifVL4+ tIV1FH15GLlasxJAKj0lPLfg8p0FZYHBXBEEOAtepfwuSIA9gp3v1t7JAn9cpL/Xil96 N14deZaSsZFax2PrNd1IxKhZ7JPaz30syg3htD8oo1x+A8bix7jNd5QX9VadcEydo9Nk hb0AjlEiSYymUtPmkGwZcvBv87Ve9EGtc2hnbhGMZBKlb0qYruu78/4R6JTZZ4HBZed+ h0gr3KPAejBREjv1dqYuy0Y7cGH8pUNyMP3aij/PRWy2mUWeFyPIvWq2/Q9uExOw/GeH ZyFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EFfGqrAU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lz18si1538138ejb.576.2021.02.24.07.32.09; Wed, 24 Feb 2021 07:32:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EFfGqrAU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238225AbhBXPY2 (ORCPT + 99 others); Wed, 24 Feb 2021 10:24:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235736AbhBXOqm (ORCPT ); Wed, 24 Feb 2021 09:46:42 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF1AFC0617AA for ; Wed, 24 Feb 2021 06:42:43 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id r3so2118383wro.9 for ; Wed, 24 Feb 2021 06:42:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HokQBU/ghtYugnhNg9omsYh8OE2+9P/WNHGHi5BtboA=; b=EFfGqrAUxLxs7rxfUGLf3i6T0VC0f+RwiaqLbB/jSzDZBUoP4NqhOPE15LATWpYsWu wyCdt8bFHnke7XVmgeJGm+xmNPRt6umRxgbeH2ROMIi40CWAaPeGQQbCUUy32P4uPMuR 69K5T1+51WIuUOHX4zeD9uZ/R6SjJcgAVQJ5OAqN88SNJDE++cYVRfLmEWV1QLhzhsA5 OjYpdcQngjNlMagS3tPN8FBtVMJFFCQAm4DWEmbx2CWy72bBEJ2WACe/5GiyHxrjfcJH RbAV5FfcJMuFoImHof3PGbkGfXTow6vgLF9inyz0MySlJngEZp2AUyODX6PH4V/cqsD3 yV2A== 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; bh=HokQBU/ghtYugnhNg9omsYh8OE2+9P/WNHGHi5BtboA=; b=NFV2kurW1JHZk2zVE7dfP4+5tEryFWeGUv1xaouSThxJ2iKuCOnh9JlSzr4mnJ18dW 1wkRV6hnhzTRKN6Km33R7om2+cSJPR5dU5kCSi/N2ruyIxjRNxlo0qKBloEwoYZyL6sI s/t0ZtanMTPkQECa2DAOSC52wKkMlukzhCdH06MFc09OAIIgClwKvdPwUw1Vt6g+7Kav spNw9RAAk1vjMYZWBSOxvpCvzeOTMsncgZgnSugol0/P9r3o6S7VJ9L50csGaRUZXpae HPvVkuTEx34b0mAAJcXm/FNurTnzpca2ZhkhEOrUn/mjnR3sj6u0THZgd282TVk90zr2 ZxAA== X-Gm-Message-State: AOAM531GD6GNHJK7j5NBhSos9zsuHsi8OAunkwHH+3IGiEC245DR1EBE NBRGeGdAXYW+/HwV7XM3C6SYdA== X-Received: by 2002:adf:f6cd:: with SMTP id y13mr11491952wrp.309.1614177762464; Wed, 24 Feb 2021 06:42:42 -0800 (PST) Received: from localhost.localdomain (lns-bzn-59-82-252-157-252.adsl.proxad.net. [82.252.157.252]) by smtp.gmail.com with ESMTPSA id p3sm4170669wro.55.2021.02.24.06.42.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Feb 2021 06:42:41 -0800 (PST) From: Daniel Lezcano To: rafael@kernel.org, andriy.shevchenko@linux.intel.com Cc: linux-kernel@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS) Subject: [PATCH v2 6/9] iio/drivers/hid-sensor: Use HZ macros Date: Wed, 24 Feb 2021 15:42:16 +0100 Message-Id: <20210224144222.23762-6-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210224144222.23762-1-daniel.lezcano@linaro.org> References: <20210224144222.23762-1-daniel.lezcano@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HZ unit conversion macros are available in units.h, use them and remove the duplicate definition. Signed-off-by: Daniel Lezcano --- drivers/iio/common/hid-sensors/hid-sensor-attributes.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/iio/common/hid-sensors/hid-sensor-attributes.c b/drivers/iio/common/hid-sensors/hid-sensor-attributes.c index 442ff787f7af..dda3b67e494f 100644 --- a/drivers/iio/common/hid-sensors/hid-sensor-attributes.c +++ b/drivers/iio/common/hid-sensors/hid-sensor-attributes.c @@ -11,13 +11,12 @@ #include #include #include +#include #include #include #include -#define HZ_PER_MHZ 1000000L - static struct { u32 usage_id; int unit; /* 0 for default others from HID sensor spec */ -- 2.17.1