Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2738467pxf; Sun, 14 Mar 2021 10:02:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvFjDIddFtsO02TyWleZAY0zuNY7JFEHXie/T6X+r9nu1mlA3yOTwJDFrApdaV8KDnOlW7 X-Received: by 2002:a17:906:22d4:: with SMTP id q20mr19999251eja.54.1615741355675; Sun, 14 Mar 2021 10:02:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615741355; cv=none; d=google.com; s=arc-20160816; b=PTAAVAuG9ndwD9jIKq/OiGBRa/ILKhohQxmaqsuk5VquQMUYGDp/fSuYfNbiBIbDmQ oPTzH7JRqtn1tQzlpq8juGuAg3PjbV5frvIaA3iX6+V8fOoM0/GFq+vCrqzO8/1C17zR m9BOQPZhhIkUy7NlZGgQDsPby5CsIXxblTeLOlvVuU44LFUYji1Z+pSMvIb3CAISGrz3 z+BNzuRK1oVRsQ5U6xBAJieR64Wz6hnB4eZzeHBRCl0Wmq6CmxF4j2JwqXNflElS+4RO VtLCpG6K6EC85v1NMYte4Bq4gDTeqFcvjwG6wF1BewmAivy+YmStkd5ENeDHwVtNtKQC fuyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=Q2sRIJ13OFKXOnU2ZcuQ9eR4sKbdfEu4sZXxczJ1WJg=; b=mOPY6K+RW+TcIC/23TXzclZUUmZsz7bvpM1zq+UXOsHgHtLS5eIOuimLTUZ50UgZpg 8IkZ7Vbirnk6ur7/1F3LSAIWHReqPNPtVF+x1Gwux6vwEqRzwpcZxCu2oxRMju99OI6p XhcY+0kX0MJhCneu0TysTtkT7XvD23Sp6Lv9fucKksZusZS5BfG6T2DX34su7JqvdQNT gO8VsqUujr8MuIGg+509M7FX7YHuwjKWrvhb/LxTbLSHfr4bgflUruHl02dIlt5z9uDD m7mzlrh1YFQ7to0hqL+sbHroTNbcquXb6IJyBsBdMQQSoCwnkskQvKS050+GLNtnpO38 OhXg== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hq26si8780451ejc.213.2021.03.14.10.02.12; Sun, 14 Mar 2021 10:02:35 -0700 (PDT) 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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233897AbhCNRAq (ORCPT + 99 others); Sun, 14 Mar 2021 13:00:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:57650 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbhCNRAb (ORCPT ); Sun, 14 Mar 2021 13:00:31 -0400 Received: from archlinux (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8528564E69; Sun, 14 Mar 2021 17:00:29 +0000 (UTC) Date: Sun, 14 Mar 2021 17:00:26 +0000 From: Jonathan Cameron To: Daniel Lezcano Cc: rafael@kernel.org, andriy.shevchenko@linux.intel.com, linux-kernel@vger.kernel.org, Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS) Subject: Re: [PATCH v2 6/9] iio/drivers/hid-sensor: Use HZ macros Message-ID: <20210314170026.712d1760@archlinux> In-Reply-To: <20210224144222.23762-6-daniel.lezcano@linaro.org> References: <20210224144222.23762-1-daniel.lezcano@linaro.org> <20210224144222.23762-6-daniel.lezcano@linaro.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 24 Feb 2021 15:42:16 +0100 Daniel Lezcano wrote: > HZ unit conversion macros are available in units.h, use them and > remove the duplicate definition. > > Signed-off-by: Daniel Lezcano Acked-by: Jonathan Cameron > --- > 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 */