Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp602831ybh; Sun, 12 Jul 2020 17:25:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0+Wbu30pmoeytXMCL7nmPldgqZCPNTu1EM2IoSMBOoVv7vb6Ic0k7FjS53d8K6wb/lwbT X-Received: by 2002:a05:6402:1ef:: with SMTP id i15mr70549685edy.378.1594599945979; Sun, 12 Jul 2020 17:25:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594599945; cv=none; d=google.com; s=arc-20160816; b=T0D9cIdV5RVZ8a1G2IugjFDuW/f5tthzBz3LQmpNXfH9rjxWM1NPQaihPA5EO4//01 XNrKRF4afykvCdQPD5qdZAMY5x/ZrfxNG5kphSVUnZdCytzB2Oaz91881xqQy7S1d02e Ps4z+umV1158ipE+7mfjp46CyobUmNzPGldMqNML7wr0sDDBLltoNLjNsNtArcy/2Iwl 3KAwEq/o2oi7gNA4FIB9Kg8qIt9aJLtuhAf9YV3O9qQTEgBkvCofOtgyltIwIVxV+rs3 KyH+qG5hP+tGJKMzLUbRjXOjTNmdl6neMk1l+ctMwIcTe0BoGkG66lxm7JkokYwW+MLx 9CFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:content-transfer-encoding :mime-version:subject:from:references:in-reply-to:message-id:date :dkim-signature; bh=VhsrQccW6EQ0L8ViSehYhZGZsrPfya/xzD/ES/J8p0Y=; b=MFfHW+gcGzK9w69sVgaVfPlt2B+o8jnk8RVNFFuvyVWEKTrmq1MyJ/5VWbx0BgcPGE 8eEubSKzaAEmMwXcnW6EWLvYcC6Qdli/bYGqq751wOImCyg6E7V0x7KFKpif4CPEpLCT 1NnoM+l8ex7eOsJ5STaydekLdkxC38DPXdyFpaq/EcXfyXBLeAvyNX31vX8YqVJwDOa8 /GrYYmMyDT/CTwBfwhJkzxoBvmQYREwjy4heGQvXtxhcTyh2zv48zRwTKoB69aWP/3AI S4ztSZ57b8Yg0aqLnEc9bn+8FvWPVkZrZdPAZXZVZwZ6oJTMQ6fClDICc9eRqLQ4Jlvp QLGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=i0Xde1zH; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id aq26si8160678ejc.401.2020.07.12.17.25.17; Sun, 12 Jul 2020 17:25:45 -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; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=i0Xde1zH; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728830AbgGMAZF (ORCPT + 99 others); Sun, 12 Jul 2020 20:25:05 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:55301 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728198AbgGMAY6 (ORCPT ); Sun, 12 Jul 2020 20:24:58 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 4B4ktc4MHzzwr; Mon, 13 Jul 2020 02:24:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1594599896; bh=2weffcFDLYZ+KKtI5FuHWep8Oh6R4G1C8jam17qttu0=; h=Date:In-Reply-To:References:From:Subject:To:Cc:From; b=i0Xde1zHcW4bdV8nIJDb6Lux+3+IH2rlLXshhTqtYqaGofZaGUVbxlAhVpXvub8K1 5xRl3LcfbbSRpV3bdeevt1uYI1b2vizEZ9aRjgDU8LZ5ypMiTRI2wK/zheAe/ssaKV o5dZBDfY5ngfRQTBI/L6TEPcM01g8bkmb95Nmzq71GezH5mnIPYuPVWoaWB5hpYuC1 eMQ5Qdja7Kh1uSwTnuolsmd+vZkQ8A7BYg1NAsoCDzxTgpYzpoV9lm0JtSPhbxKSEd wwy4QuKE1HwgbrP/eUABz0RBFdw1+l2p/e7KBNljHelbFLf8ZH6Fw65qv3cM8dsmbg sPWOrl9HF2W4w== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.3 at mail Date: Mon, 13 Jul 2020 02:24:55 +0200 Message-Id: In-Reply-To: References: From: =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Subject: [PATCH v6 5/5] input: mt: cleanup open-coded __set_bit() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To: Henrik Rydberg , Dmitry Osipenko , Dmitry Torokhov , James Chen , Johnny Chuang , Scott Liu Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace open-coded __set_bit() with the function. Signed-off-by: Michał Mirosław --- drivers/input/input-mt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/input-mt.c b/drivers/input/input-mt.c index a81e14148407..f699538bdac4 100644 --- a/drivers/input/input-mt.c +++ b/drivers/input/input-mt.c @@ -16,7 +16,7 @@ static void copy_abs(struct input_dev *dev, unsigned int dst, unsigned int src) if (dev->absinfo && test_bit(src, dev->absbit)) { dev->absinfo[dst] = dev->absinfo[src]; dev->absinfo[dst].fuzz = 0; - dev->absbit[BIT_WORD(dst)] |= BIT_MASK(dst); + __set_bit(dst, dev->absbit); } } -- 2.20.1