[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CABXOdTdGFjW2NCMayv1WeZX4eOj1HK=5xx6zZSnGLKmbpvcuFw@mail.gmail.com>
Date: Wed, 3 Aug 2016 11:03:34 -0700
From: Guenter Roeck <groeck@...gle.com>
To: Oliver Neukum <oneukum@...e.com>
Cc: Guenter Roeck <groeck@...omium.org>,
Felipe Balbi <felipe.balbi@...ux.intel.com>,
Bin Gao <bin.gao@...el.com>,
Chandra Sekhar Anagani <chandra.sekhar.anagani@...el.com>,
Pranav Tipnis <pranav.tipnis@...el.com>,
Heikki Krogerus <heikki.krogerus@...ux.intel.com>,
linux-kernel <linux-kernel@...r.kernel.org>,
linux-usb@...r.kernel.org,
Bruce Ashfield <bruce.ashfield@...driver.com>
Subject: Re: [RFC PATCH 3/4] usb: typec: USB Type-C Port Manager (tcpm)
On Wed, Aug 3, 2016 at 2:18 AM, Oliver Neukum <oneukum@...e.com> wrote:
> On Tue, 2016-08-02 at 13:32 -0700, Guenter Roeck wrote:
>> +static int tcpm_set_polarity(struct tcpm_port *port,
>> + enum typec_cc_polarity polarity)
>> +{
>> + tcpm_log(port, "polarity %d", polarity);
>> +
>> + port->polarity = polarity;
>> +
>> + return port->tcpc->set_polarity(port->tcpc, port->polarity);
>> +}
>
> Here you don't care about the result.
Changed to only set port->polarity if the set_polarity callback was successful.
Thanks,
Guenter
Powered by blists - more mailing lists