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 CD1817C for ; Tue, 7 Jun 2022 00:55:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 957C7C385A9; Tue, 7 Jun 2022 00:55:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654563302; bh=jtKsJm2olsnz+fSzwZA/FF+z6PxvCo6g3U8AJ3kGynE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JdPGdlgzYiEn6KC2AY89fd68QPepy/PmCePcArDAR197Fu4nhi5to+B+AotpYGp6/ 1sxB9O5X63W/A9frKCX80S6mag2QAVc1LidUtdVjy75JM4KpA2TzECJIlL308L+yII pl7Etz5KCN6TEQSkXaaL/9pVVOGhhJIS8Jywlynn6aNRQDtijVa0nSiaWzTT62g6Ov +gORgEC6JLBO6qLTdYIghUPZfopikSeZ0XCrpukJPOeWCsG1piMmRiLVU9yURawggp OLAHNyOduoS8uYiMQnn3KprJ8dAdlZpQH7bJ3w48nQK5oY8/kg+1b8cfE+POF100cJ 7Iam57ewpGuuw== Date: Tue, 7 Jun 2022 00:54:59 +0000 From: Tzung-Bi Shih To: Guenter Roeck Cc: Benson Leung , Guenter Roeck , chrome-platform@lists.linux.dev, linux-kernel Subject: Re: [PATCH 07/13] platform/chrome: cros_ec_proto: separate fill_protocol_info() Message-ID: References: <20220606141051.285823-1-tzungbi@kernel.org> <20220606141051.285823-8-tzungbi@kernel.org> Precedence: bulk X-Mailing-List: chrome-platform@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: On Mon, Jun 06, 2022 at 09:06:03AM -0700, Guenter Roeck wrote: > On Mon, Jun 6, 2022 at 7:12 AM Tzung-Bi Shih wrote: > > -static int cros_ec_host_command_proto_query(struct cros_ec_device *ec_dev, > > - int devidx, > > - struct cros_ec_command *msg) > > +static int fill_protocol_info(struct cros_ec_device *ec_dev, int devidx) > > I would suggest to keep the cros_ec_ prefix. Also, "fill" sounds a bit > too much as if the function would fill some structure fields. "get" > (ie cros_ec_get_proto_info or similar) might be a better name, Ack, will fix in next version.