Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754291AbcDNJgI (ORCPT ); Thu, 14 Apr 2016 05:36:08 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:39008 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752867AbcDNJgB (ORCPT ); Thu, 14 Apr 2016 05:36:01 -0400 Date: Thu, 14 Apr 2016 11:35:57 +0200 From: Pavel Machek To: Tomeu Vizoso Cc: linux-kernel@vger.kernel.org, Sameer Nanda , Javier Martinez Canillas , Lee Jones , Benson Leung , Enric =?iso-8859-1?Q?Balletb=F2?= , Vic Yang , Stephen Boyd , Vincent Palatin , Randall Spangler , Todd Broch , Gwendal Grignou , Shawn Nematbakhsh , Sebastian Reichel , Dmitry Eremin-Solenikov , linux-pm@vger.kernel.org, David Woodhouse Subject: Re: [PATCH v5 5/6] power: cros_usbpd-charger: Add EC-based USB PD charger driver Message-ID: <20160414093557.GA26596@amd> References: <1457970301-24616-1-git-send-email-tomeu.vizoso@collabora.com> <1457970301-24616-6-git-send-email-tomeu.vizoso@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1457970301-24616-6-git-send-email-tomeu.vizoso@collabora.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 464 Lines: 16 > +#define CHARGER_DIR_NAME "CROS_USB_PD_CHARGER%d" > +#define CHARGER_DIR_NAME_LENGTH sizeof(CHARGER_DIR_NAME) > + > +#define MANUFACTURER_MODEL_LENGTH 32 > + > +struct port_data { > + int port_number; > + char name[CHARGER_DIR_NAME_LENGTH]; That's not really correct, right? If we ever have more than 99 such chargers... -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html