Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752463AbdFUWHK (ORCPT ); Wed, 21 Jun 2017 18:07:10 -0400 Received: from ozlabs.org ([103.22.144.67]:48443 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752408AbdFUWHJ (ORCPT ); Wed, 21 Jun 2017 18:07:09 -0400 Subject: Re: [PATCH 3/3] fsi/master-gpio: Add external mode To: Joel Stanley Cc: Linux Kernel Mailing List , Christopher Bostic References: <1497864405-26990-1-git-send-email-jk@ozlabs.org> <1497864405-26990-4-git-send-email-jk@ozlabs.org> From: Jeremy Kerr Message-ID: Date: Thu, 22 Jun 2017 06:07:00 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-AU Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 440 Lines: 18 Hi Joel, >> +static ssize_t external_mode_show(struct device *dev, >> + struct device_attribute *attr, char *buf) >> +{ >> + struct fsi_master_gpio *master = dev_get_drvdata(dev); >> + >> + return snprintf(buf, PAGE_SIZE - 1, "%u", > > I gave this a spin on a machine today and noticed we're missing a > newline there. Should this be "%u\n"? Yep, that'd make things easier to read. v2 coming. Cheers, Jeremy