From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752620AbdAZLuJ (ORCPT ); Thu, 26 Jan 2017 06:50:09 -0500 Received: from us01smtprelay-2.synopsys.com ([198.182.60.111]:38681 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751056AbdAZLuH (ORCPT ); Thu, 26 Jan 2017 06:50:07 -0500 Subject: Re: [PATCH v3] i2c: core: helper function to detect slave mode To: Wolfram Sang , Luis Oliveira References: <58edd25a0fbe50b6d5abef14b7e46c63a1e06830.1484663257.git.lolivei@synopsys.com> <20170125204537.i66nykln4fkxqryy@ninjato> CC: , , , , , , , , , , , From: Luis Oliveira Message-ID: <5c2049cc-05aa-1f5b-65af-4df1147ed56a@synopsys.com> Date: Thu, 26 Jan 2017 11:49:59 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <20170125204537.i66nykln4fkxqryy@ninjato> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.107.25.85] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25-Jan-17 20:45, Wolfram Sang wrote: > >> + * i2c_slave_mode_detect - detect operation mode > > I'd rather name it 'i2c_detect_slave_mode' I will do a V4 with this change. > >> + * @dev: The device owning the bus >> + * >> + * This checks the device nodes for an I2C slave by checking the address >> + * used. >> + * >> + * Returns true if an I2C slave is detected, otherwise returns false. > > Both paragraphs could be a little more explicit. It is not about > "slaves" or "clients" in general, but about those entries which make the > current master act as a slave, too. > Ok, I see your point of view. I will reword it also. > The code looks good to me, so we are close to go! > > Thanks, > > Wolfram > Great! Thanks