Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1120983img; Fri, 22 Mar 2019 16:26:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyHU19J91j1z9vVH3vu+B5eOlpe8V5jxQFrKmCY6+H7Pir5jq1YDjXaGH0XFmLm49/S8wN X-Received: by 2002:a17:902:968a:: with SMTP id n10mr12409734plp.283.1553297214758; Fri, 22 Mar 2019 16:26:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553297214; cv=none; d=google.com; s=arc-20160816; b=aty95Svi4vULs1IhMQtJ1Ek8WYB5CQ3xeqzjMAr/fvhMyeSetMeF9WU0wJZIFm3FFk 2LazJ5/P2YdJsrZ675bmkBH+QKfO06Ja05x4F2/gyc8l47yA6ROEMs5E0a49JZxbJXTD o9bwchh39nCmjaTjPs2H35l9T4avYAhhpa1Ljk5ie/TkHfGyTB8W3DTsIH3OJeKTUyh4 8t3WIcbCKopdUmY+kahTm/nQG+F0azT+UU1cN6ItdUkB/zmd8rfvjZJU5KdwJD01pggG C6U1cUIty6B+liD5ScRSgmgNM79LeywmOsnyvrTC5SJxPXascnjOkV4yKlocYsDNPSVf Q/Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=onFMCcZjnV/wi4JGMf0/WZ6iaBAGMox5xUrLf4iGXd8=; b=vVt58vAqgnE1K3OfRp5ALphtkUOnNhdeWge3djB4YMZJ8D1vXebHNH2GGkt1ZPiBY9 xBfjOK0+rwMbbTNmHjGvO8HNrDpFziV4jqPbsg80ThjkAmiKgtSze8GAK+er/rRgqeqY EiXflTTybH+c7Sd2pzq0BUq7n2NdSPbJcD3ev15fuFGfTdecUcH0RzjUdhlsm8Wr4f2T fLFFnccEMsEu8haXCs6iDFMSu2wH85PHjZW4UWgPabkKD+V3eHT0HDLC23qpBCfDGr4J AGvBdeimZervZzY4ZzBUBRB8kOFaYjiSWYDnyOGPCHxOLrUzKyyghoVyXSc/jg+r5nFl /rEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v2si1462590pgh.356.2019.03.22.16.26.39; Fri, 22 Mar 2019 16:26:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727139AbfCVX0E (ORCPT + 99 others); Fri, 22 Mar 2019 19:26:04 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:42203 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726037AbfCVX0D (ORCPT ); Fri, 22 Mar 2019 19:26:03 -0400 Received: from p5492e2fc.dip0.t-ipconnect.de ([84.146.226.252] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1h7TXy-00040x-ON; Sat, 23 Mar 2019 00:25:58 +0100 Date: Sat, 23 Mar 2019 00:25:58 +0100 (CET) From: Thomas Gleixner To: Lubomir Rintel cc: Sebastian Reichel , Darren Hart , Rob Herring , Mark Rutland , x86@kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Pavel Machek Subject: Re: [PATCH 04/10] x86, olpc: Use a correct version when making up a battery node In-Reply-To: <20190310162419.11861-5-lkundrak@v3.sk> Message-ID: References: <20190310162419.11861-1-lkundrak@v3.sk> <20190310162419.11861-5-lkundrak@v3.sk> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 10 Mar 2019, Lubomir Rintel wrote: Subject prefix ... > The XO-1 and XO-1.5 batteries apparently differ in an ability to report > ambient temperature. We need to use a different compatible string for the > XO-1.5 battery. > > Previously olpc_dt_fixup() used the presence od the battery node's s/od/of/ > > +int olpc_dt_compatible_match(phandle node, const char *compat) > +{ > + char buf[64]; > + int plen; > + char *p; > + int len; Please coalesce variables of the same type. No point in wasting space. char buf[64], *p; int plen, len; Hmm? > + > + if (olpc_dt_compatible_match(node, "olpc,xo1-battery")) { > + /* If we have a olpc,xo1-battery compatible, then we're > + * running a new enough firmware that already has > + * the dcon node. > + */ Comment style: /* * This is a proper multi line comment even * if networking people use that horrible style * above. */ With those nitpicks fixed: Acked-by: Thomas Gleixner