From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Subject: Re: [PATCH 05/11] mux: Add Intel Cherrytrail USB mux driver Date: Sat, 2 Sep 2017 13:37:24 +0300 Message-ID: <20170902103724.mx7dpggrbbwx57ls@mwanda> References: <20170901214845.7153-1-hdegoede@redhat.com> <20170901214845.7153-6-hdegoede@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Andy Shevchenko Cc: Hans de Goede , devel@driverdev.osuosl.org, Kuppuswamy Sathyanarayanan , Heikki Krogerus , Mathias Nyman , Greg Kroah-Hartman , USB , "linux-kernel@vger.kernel.org" , Platform Driver , Sathyanarayanan Kuppuswamy Natarajan , Chanwoo Choi , MyungJoo Ham , Guenter Roeck , Darren Hart , Peter Rosin , Andy Shevchenko List-Id: platform-driver-x86.vger.kernel.org On Sat, Sep 02, 2017 at 01:19:05PM +0300, Andy Shevchenko wrote: > > +static void intel_cht_usb_mux_vbus_work(struct work_struct *work) > > +{ > > + struct intel_cht_usb_mux *mux = > > + container_of(work, struct intel_cht_usb_mux, vbus_work); > > + bool vbus_present = false; > > + int i; > > unsigned int i; ? > int i is fine. Static checkers which complain about stuff like that should be uninstalled. > > + > > + for (i = 0; i < ARRAY_SIZE(vbus_cable_ids); i++) { regards, dan carpenter