Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp487106ybm; Thu, 28 May 2020 07:52:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqJWsf7Knt9v2so2JQ2ZEAzGtjMrLCrjO1TJSmkhEJolHYkUyL7AVqCHhVY4C4zNSYiY98 X-Received: by 2002:aa7:c312:: with SMTP id l18mr3492018edq.149.1590677522201; Thu, 28 May 2020 07:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590677522; cv=none; d=google.com; s=arc-20160816; b=dVnPsCxtYdzo3eLGoOSEcH/aKaAQQMBp1kET4UZDuQLoj2h4S6VXuKhcRgq19APDxs 6VpynttP6KurndY6h4vHfFTSThLk4a6iSXW2Vv14cVrg7HeQOYO6J9jey/grZFOhr4AO IzZxoca2IECtxJpfk20gA8sBHte4mjvX9wY+ymyi462zJy3GPoDLcnm0xDNZmn9fdHQP MJeZmDxS128HX2bRhZe4SrMduAAT1/Fe+3W033od8t6DFpEWvn6qVtzJBLQmqheFkCyd 3Vo/s6XWQzrs9+BmE7LwmOl9eDOGy5VfgorOzbt6M45Wa4jCJJmEuwjaUIDYktaqY8KU Xm/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=7bgiq+hLHRX0DJp5HGAPibY152zraWoS1bf1ZUi8yr0=; b=bk21XDVaoZJNxf5VaSaaCCEwOqxtDTmzUNVPQkNyfwv26v1JltVUslyaXtANrSL49z 9eaboHVVUQYOqSZ7LJ8rNEaszaEuw8+SvYyBupABqqscFpEr1tohRdA/E7PPBBJCwvN5 3rc/JsIbFhthlf+CeMc/CwKEW7S3iFgEoOvwb0yXtKOncG7XBL4sir0myB5xgjfYN4CP GLpbMdPQLVq8YeNLLU6mQzSMacn0kQMYAU/476NJCSO4K9o2HBL3q68QCx7QFlNiBtVT imlQCS2qYO8Ds4CnMX5e4H3P2SjME5FbB8qxlJd6L5Qqx3CQu1QUxkm+YB331QwuYIFx IzVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=K6fYhbLN; 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 39si3940687edq.195.2020.05.28.07.51.39; Thu, 28 May 2020 07:52:02 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=K6fYhbLN; 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 S1728593AbgE1OtU (ORCPT + 99 others); Thu, 28 May 2020 10:49:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728539AbgE1OtT (ORCPT ); Thu, 28 May 2020 10:49:19 -0400 Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47E75C08C5C6 for ; Thu, 28 May 2020 07:49:18 -0700 (PDT) Received: by mail-qk1-x743.google.com with SMTP id b27so3318227qka.4 for ; Thu, 28 May 2020 07:49:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=7bgiq+hLHRX0DJp5HGAPibY152zraWoS1bf1ZUi8yr0=; b=K6fYhbLNN80hW3Pf3S2Qo3jCZMiRm8Yyt2Z0WsGO9l1UOg9rbBt4EhiCgeduYh9v2J Cu+K0SqzPmLZEo0x+tipWKiL/HHRuemXF65qU7QlS++2O92h6Rtz1FBrTLKpQxSF65dv yiRzSumOTtlF5dDuF9zxCbR1UIzy1aAXD1FkiNwIYn2Wm0PiF4uKafoFpnA6QtXtWbyQ Lvs6IVTwvtYeO96emfrhmenqmqgc1PdidYI3hbgg1K3+lk99R+yYx2lFOhs45rHz9LTf jR/cMidGMOI0O4ABpSJmCcDzcW6V1cd69mNF9Unv6ByQxucGJBA1oELurTpg3ZrLS6xa qT5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=7bgiq+hLHRX0DJp5HGAPibY152zraWoS1bf1ZUi8yr0=; b=sGUQjxXFwd92eWwC3RGuzVeIbCRKKUR6tv9O182knrhU/I4xuhuyOgliOD9/aQfYIl RVFLtrLSWLgUYP/jV7IMep8aIGDgrHLm6SVLQJpwUhcX98JXxDjF9NyJzA3e1+5kK2hW kZSyGJodDEcoTgNl9yWDFY0sodMLZZ7/mbrqoZNMu5vYjhzDAqyAM1q7KAforE+lO1cM cYZe8sIfyG7BmCulxDdPh3GJwptTE7HsVGEMTF/yXijfx32KAB5KGrQcGLH49qHcBeAI KVdar0wzdIkBx3EypAnP8HylxWxfzeGKEOc2wHVJpj/FXTojircvL5KNvK9Odm1hb/qH fYbA== X-Gm-Message-State: AOAM532tzunQ134cog8iyFNwd8yJjTxHRlGu6YAo3tk0F+bB+2BdN/LH mD6RVzUWP8mj8IQfoZrTypVApZfdmpViIRo1/xnY6g== X-Received: by 2002:a37:dd6:: with SMTP id 205mr2993984qkn.323.1590677357382; Thu, 28 May 2020 07:49:17 -0700 (PDT) MIME-Version: 1.0 References: <20200528142241.20466-1-brgl@bgdev.pl> <20200528142241.20466-2-brgl@bgdev.pl> <20200528144456.GG3606@sirena.org.uk> In-Reply-To: <20200528144456.GG3606@sirena.org.uk> From: Bartosz Golaszewski Date: Thu, 28 May 2020 16:49:06 +0200 Message-ID: Subject: Re: [PATCH v2 1/2] regmap: provide helpers for simple bit operations To: Mark Brown Cc: Bartosz Golaszewski , John Crispin , Sean Wang , Mark Lee , "David S . Miller" , Jakub Kicinski , Matthias Brugger , netdev , arm-soc , linux-mediatek@lists.infradead.org, LKML , Fabien Parent , Stephane Le Provost , Pedro Tsai , Andrew Perepech Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org czw., 28 maj 2020 o 16:45 Mark Brown napisa=C5=82(a): > > On Thu, May 28, 2020 at 04:22:40PM +0200, Bartosz Golaszewski wrote: > > > + return (val & bits) =3D=3D bits ? 1 : 0; > > The tenery here is redundant, it's converting a boolean value into a > boolean value. Otherwise this looks good. Do you mind if I respin it right away? I don't want to spam the list. Bartosz