Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3738031pxu; Mon, 30 Nov 2020 09:16:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJztbuHpt1AVKy+IzSNA+7Af92A+j0NKgXagK7Nrk/z5KnQjR4zVMFk7pUl8LdNaxFTi2POw X-Received: by 2002:a50:f308:: with SMTP id p8mr2525541edm.331.1606756596690; Mon, 30 Nov 2020 09:16:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606756596; cv=none; d=google.com; s=arc-20160816; b=c8qjZjf7o2NvjMtOyn98+dZVrMZRgZFAZWyGXzj0VzuSHNzt6cbl7cdNuAOFVPw6rn 2Z8pyfYOPJphf6JMwhxa/HqEYKU7eYA/OB0PyvKggtct1Cw5AN4uXI8iiL9QTZlpHml8 qgAsKPRtvA5qajyZzIis5IbusZ66gf+YBnKJzdLSp915LgZe02o6RKHYWG6/qasF+Af/ HIFOocHTzGl7jV9pe/eh6L/vhCGzNi6/CtkzQL+yHdmbIGQVdsMerooZTEwHkXPlHF1G ekaqrm0qvHvu/BmBEah6dZNv9yeCSgH7VLXZChlOHYXXbzulofvGt3qdgEAY1+7uRtwK R61Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oEoiyOiAnZ4IMA6hT5VzgVJrgiMF7wML28LalTGiOiY=; b=f0Zhback5EETE6TI5OAuv+Z/rHkE9WX5VWeqUQllyCP8WobBqz9Uqh4TA10YjIqHO+ DF7L7th7K3irhi2EL2Mq8VIZEbc19Xs9bI1LASmBAPsJ8UBPvKQrx9TX0BvhYLruG2X4 Y1cfb3CIMjQPpgMsp9J0y/iaBBZga4L596iOXYwbq/vjrokDjH6orfl98CQnYiKyfrQ2 se+wJpbgMpCdWziopFWIcb5nAxbCelnc0rScUxUFCR5WsHjeDzfIVrueDymfxrDQ0zPU mDjxEzKIm6RL6+7lFTlP4uOawoLpYUFFh0zUDFe9ui5gl3EiUSB07SdFOI9XP0hmTzmh n2Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="nlFn1S/m"; 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 h12si13273110ejx.340.2020.11.30.09.16.12; Mon, 30 Nov 2020 09:16:36 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b="nlFn1S/m"; 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 S1729282AbgK3RNd (ORCPT + 99 others); Mon, 30 Nov 2020 12:13:33 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:60518 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726265AbgK3RNb (ORCPT ); Mon, 30 Nov 2020 12:13:31 -0500 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A0430B26; Mon, 30 Nov 2020 18:12:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1606756369; bh=6VQyvAaUE8HxXXzA9oVZtTfhgSUB6K7rr16cFaqVi64=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nlFn1S/mpFokHinyu4adMtkCO7Yf0yKGuEGeCxtJ3BeTVC/T9lvZITxKROoX4a3OR Ep2BsQd4pKesYclfpf7Bxc3HyzAub7H8AiXTj3h08n3CdyImZsl7OnyAdm/wVXFGi7 aCUDb4wTuP5WjKWVlMBbu+kUCBF7jWGrtFeTMKyw= Date: Mon, 30 Nov 2020 19:12:41 +0200 From: Laurent Pinchart To: Daniel Scally Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, linux-media@vger.kernel.org, devel@acpica.org, rjw@rjwysocki.net, lenb@kernel.org, gregkh@linuxfoundation.org, mika.westerberg@linux.intel.com, andriy.shevchenko@linux.intel.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, wsa@kernel.org, yong.zhi@intel.com, sakari.ailus@linux.intel.com, bingbu.cao@intel.com, tian.shu.qiu@intel.com, mchehab@kernel.org, robert.moore@intel.com, erik.kaneda@intel.com, pmladek@suse.com, rostedt@goodmis.org, sergey.senozhatsky@gmail.com, linux@rasmusvillemoes.dk, kieran.bingham+renesas@ideasonboard.com, jacopo+renesas@jmondi.org, laurent.pinchart+renesas@ideasonboard.com, jorhand@linux.microsoft.com, kitakar@gmail.com, heikki.krogerus@linux.intel.com Subject: Re: [PATCH 16/18] i2c: i2c-core-base: Use the new i2c_acpi_dev_name() in i2c_set_dev_name() Message-ID: <20201130171241.GP14465@pendragon.ideasonboard.com> References: <20201130133129.1024662-1-djrscally@gmail.com> <20201130133129.1024662-17-djrscally@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201130133129.1024662-17-djrscally@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, Thank you for the patch. On Mon, Nov 30, 2020 at 01:31:27PM +0000, Daniel Scally wrote: > From: Dan Scally > > To make sure the new i2c_acpi_dev_name() always reflects the name of i2c > devices sourced from ACPI, use it in i2c_set_dev_name(). > > Signed-off-by: Dan Scally I'd squash this with 15/18, which would make it clear there's a memory leak :-) > --- > Changes since RFC v3: > > - Patch introduced > > drivers/i2c/i2c-core-base.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c > index 573b5da145d1..a6d4ceb01077 100644 > --- a/drivers/i2c/i2c-core-base.c > +++ b/drivers/i2c/i2c-core-base.c > @@ -814,7 +814,7 @@ static void i2c_dev_set_name(struct i2c_adapter *adap, > } > > if (adev) { > - dev_set_name(&client->dev, "i2c-%s", acpi_dev_name(adev)); > + dev_set_name(&client->dev, i2c_acpi_dev_name(adev)); > return; > } > -- Regards, Laurent Pinchart