From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hans de Goede Subject: [PATCH v5 1/2] power: supply: bq24190_charger: Use new extcon_register_notifier_all() Date: Thu, 13 Apr 2017 14:04:11 +0200 Message-ID: <20170413120412.12773-2-hdegoede@redhat.com> References: <20170413120412.12773-1-hdegoede@redhat.com> Return-path: Received: from mx1.redhat.com ([209.132.183.28]:57764 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752093AbdDMMER (ORCPT ); Thu, 13 Apr 2017 08:04:17 -0400 In-Reply-To: <20170413120412.12773-1-hdegoede@redhat.com> Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Sebastian Reichel Cc: Hans de Goede , Takashi Iwai , Liam Breck , Tony Lindgren , linux-pm@vger.kernel.org When I submitted the extcon handling I had a patch pending for the extcon sub-system for extcon_register_notifier to take -1 as cable id for listening for all type cable events on an extcon with a single notifier. In the end it was decided to instead add a new extcon_register_notifier_all function for this, switch to using this. Signed-off-by: Hans de Goede Acked-by: Liam Breck --- Changes in v4: -This is a new patch in v4 of this patch-set Changes in v5; -Add Liam's Acked-by --- drivers/power/supply/bq24190_charger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/supply/bq24190_charger.c b/drivers/power/supply/bq24190_charger.c index 7c893c0..bd9e5c3 100644 --- a/drivers/power/supply/bq24190_charger.c +++ b/drivers/power/supply/bq24190_charger.c @@ -1502,8 +1502,8 @@ static int bq24190_probe(struct i2c_client *client, if (bdi->extcon) { INIT_DELAYED_WORK(&bdi->extcon_work, bq24190_extcon_work); bdi->extcon_nb.notifier_call = bq24190_extcon_event; - ret = devm_extcon_register_notifier(dev, bdi->extcon, -1, - &bdi->extcon_nb); + ret = devm_extcon_register_notifier_all(dev, bdi->extcon, + &bdi->extcon_nb); if (ret) { dev_err(dev, "Can't register extcon\n"); goto out_sysfs; -- 2.9.3