From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89E727A for ; Wed, 27 Jul 2022 16:06:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA9D9C433C1; Wed, 27 Jul 2022 16:06:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658937966; bh=R2p0of76K8a2ZHcxkNUvLgEJAOqcDlPPdWFYl5pfpn4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=n+tfQY0Je0Ydf+R9oOH9HgmZYYW5++5a6jmKQ/bX/yFvQ9opacM49gpQj9VVkHMBs Bb5GQTfbi3UwefOKBhzmOMc76Qxuc10xCc2XQAWRhm3LQ6HjIer5SI4x5ERU6iWk3d VZyWC1XSPzBh9bSa54RabWnPEzlo8f8jLNJB/lHc= Date: Wed, 27 Jul 2022 18:06:03 +0200 From: Greg Kroah-Hartman To: Philipp Hortmann Cc: Forest Bond , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] staging: vt6655: Rename byOrgValue to reg_value in a macro Message-ID: References: <83920d919acd7596488943182f37132e479d70f4.1658333350.git.philipp.g.hortmann@gmail.com> <4d1e2294-a3b7-972b-f021-cecee8779f1b@gmail.com> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4d1e2294-a3b7-972b-f021-cecee8779f1b@gmail.com> On Wed, Jul 27, 2022 at 05:54:04PM +0200, Philipp Hortmann wrote: > On 7/27/22 08:47, Greg Kroah-Hartman wrote: > > On Wed, Jul 20, 2022 at 06:24:32PM +0200, Philipp Hortmann wrote: > > > Fix name of a variable in a macro that uses CamelCase which is not > > > accepted by checkpatch.pl > > > > Why rename something you are about to delete in a later patch? > > > > thanks, > > > > greg k-h > > I need to rename this variable. Does it matter if I do it in first or last > patch? When doing it first I do not have to review so much checkpatch > warnings. > > Or is it OK to convert the macro to a function and rename the variable in > one patch? Convert and rename at the same time, that makes it easier and simpler overall. thanks, greg k-h