Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp8619753pxu; Sun, 27 Dec 2020 13:16:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzknb/HXQ6UBv78SApStOzDnT2DeJqbCFxd8y14lEDv9BWmRfJO6DvnC4t34JmaaJlQ0d6l X-Received: by 2002:a05:6402:797:: with SMTP id d23mr39451405edy.302.1609103767865; Sun, 27 Dec 2020 13:16:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609103767; cv=none; d=google.com; s=arc-20160816; b=WxoZgV9/3clcb3riwqAVIK8xZklrjiP40+QQVGlLFLOAC35DTahPQlpteNZEqWLRnJ TTJadT3JYE2RJrOTamIdBNbk4qByG3C9xsBfuvSL0RAnlrs9vML+fcLcegyswJF5aGCy j8oxY4tdhMHivsIQXAnzDmjN82y6SCUGYHr7I6p70eGi6pkiPBQCxo/dxSjM3QFb7a9d Hp/EebxhsYcKlEu6gdJm+CFVzPJBB0MybZgT85X+3EGI/T0KKhXhXhTYWi8uyJkSuEDU 9/7btWNmAKKVSM0OMtEhu5MOi5wmUBJ9DZf3/Oex0kHtYtnBLhHNM/8/EBwxx+nZo3Qu tKPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EC/aTHO5BGjbIzin/rZAInkFVqHOEkmhdU6CAhi0o9g=; b=ThkOIGZLuBAny1/5sS+hl1fAS/Rgb/hpTJaGdWAsNKhEE7wjk2o9RIVzTCbJR+qOYe RG0NCmbYDAQ/PaEHD1A58ps4ECWGNET2nfaeSna3IHVWEmDlzQG5QICjQZopGNqM0QMr xeKZt4qNzcX5vweKIl7EcXoU9HNrW6jrxm7ilLkeK/6R8/dVKkyDhVe9C1kCCLdkyUuT 4rXewICZfYNOewcXlIw2yfBdNNb7iXXcPIwWbP6CjyWe4wKkJHAFGwPMX7zyjcvoEAYG rp17MiEc0um6WE9iYocewr5yGQ7xwHrXQa1ESdcV5HvPMMuP7AewkbV6mhwYH/+KZVnK zkDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YgfjKo5i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw4si17596578ejb.196.2020.12.27.13.15.46; Sun, 27 Dec 2020 13:16:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YgfjKo5i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726571AbgL0VO1 (ORCPT + 99 others); Sun, 27 Dec 2020 16:14:27 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:25189 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726508AbgL0VO0 (ORCPT ); Sun, 27 Dec 2020 16:14:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1609103580; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EC/aTHO5BGjbIzin/rZAInkFVqHOEkmhdU6CAhi0o9g=; b=YgfjKo5ig5Keiljv17YyhjTZeL728V+AknLcanBRDxaJwq5pzMe3msYwapa7+t1/ajUhbR Du1GS4yhWN81P1h9E91UUBTLaIShPdlaZlw15VVbgVtGflhCH0pu91uYBpdA5Bkl3i92UK rpw6Vd3Z0UYk4v7UQHIluCKa+1YSB/g= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-312-aWhcP1NMOWOfsETGabpNxg-1; Sun, 27 Dec 2020 16:12:58 -0500 X-MC-Unique: aWhcP1NMOWOfsETGabpNxg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B547CE75D; Sun, 27 Dec 2020 21:12:56 +0000 (UTC) Received: from x1.localdomain.com (ovpn-112-25.ams2.redhat.com [10.36.112.25]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6701B1ACB9; Sun, 27 Dec 2020 21:12:54 +0000 (UTC) From: Hans de Goede To: Lee Jones , MyungJoo Ham , Chanwoo Choi , Cezary Rojewski , Pierre-Louis Bossart , Liam Girdwood , Jie Yang , Mark Brown Cc: Hans de Goede , patches@opensource.cirrus.com, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: [PATCH 08/14] extcon: arizona: Fix flags parameter to the gpiod_get("wlf,micd-pol") call Date: Sun, 27 Dec 2020 22:12:26 +0100 Message-Id: <20201227211232.117801-9-hdegoede@redhat.com> In-Reply-To: <20201227211232.117801-1-hdegoede@redhat.com> References: <20201227211232.117801-1-hdegoede@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The initial value of the GPIO should match the info->micd_modes[0].gpio value. arizona_extcon_probe() already stores the necessary flag in a mode variable, but instead of passing mode as flags to the gpiod_get() it was using a hardcoded GPIOD_OUT_LOW. Signed-off-by: Hans de Goede --- drivers/extcon/extcon-arizona.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c index 95acfe7620fd..145ca5cd40d5 100644 --- a/drivers/extcon/extcon-arizona.c +++ b/drivers/extcon/extcon-arizona.c @@ -1510,7 +1510,7 @@ static int arizona_extcon_probe(struct platform_device *pdev) */ info->micd_pol_gpio = gpiod_get_optional(arizona->dev, "wlf,micd-pol", - GPIOD_OUT_LOW); + mode); if (IS_ERR(info->micd_pol_gpio)) { ret = PTR_ERR(info->micd_pol_gpio); dev_err(arizona->dev, -- 2.28.0