From patchwork Sun Jun 13 23:16:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 459554 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp2811614jae; Sun, 13 Jun 2021 16:20:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwX1cOKVYYQs+xzinb8KVW0NH1ZhsUYWLz4CeWM9xK4DxLiysBc0fVdhwvDPMM0rNUT+OR3 X-Received: by 2002:a17:906:acd:: with SMTP id z13mr10812784ejf.437.1623626409320; Sun, 13 Jun 2021 16:20:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623626409; cv=none; d=google.com; s=arc-20160816; b=AyK3gjSQwk1lwK7LL+9nKJhUxizG4BA9/6O+ccvgdqvH0N+ADOGH/avN33Bn4iBRuP cfu4U+z4O7x/M3nwcYSdvPLMXdm27Yzn58w0/OG9vfE3fLyeVGNrxKbwrp729DBLcK2w VfzmRHJIklVPLNJp87oVk86INS6nEUyXdFCUUrE6K9fBYrlQPgCdHYm+eWgPtHv3LITd BgMNclvlmSxVmTx2xmnWnHoV4rvprNHtWLHOMTjCxRoawICLk6Escgbos9ay2tZyxmxW HZEGhz7IbV2Q2CDV7rTM3SkwHbQroEdpT3iT1Q8jMaxckTgzcTpRysS0qSW+m4qbppCM NVVA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=hRCpeFmIYg1JEjTMc8/Ljy8Q0O+bWExH/qyGdjQ4Qss=; b=MmTtwtvAZ/UUlCFRRmq5TGqszkOnMBzWvWPlNEhTzrRpRAFgVtdTFEZOvCyC6hr+6J T8XXazjauqOpV/6IzF0o8d0CtqiTzfZ2JiktYMAf/K4fG/BF6U0qd6wsYgAtu42T8L6N W+EMH5Ip7A973nzpVx4/swC9wTpiqzz1sfJZIY4r4A5BDY7gyBQn6m2hCA03hCK3iDWM 5oqLiqKU8Xd1C30SJfwvZafaXmBA5npWoJIae83UyNhgHdONrgcDXZMtbcBy5n81Wkfd Rg1KT8A3myT+Dleyp7MNyBi0eTUzZ659g5akC6Ur68Q3BPPIloIqDBg6lSYXAu09IMN2 hv/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TxcVq8hq; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z21si8545703edd.20.2021.06.13.16.20.09 for ; Sun, 13 Jun 2021 16:20:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-leds-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=@linaro.org header.s=google header.b=TxcVq8hq; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232168AbhFMXWJ (ORCPT ); Sun, 13 Jun 2021 19:22:09 -0400 Received: from mail-lf1-f45.google.com ([209.85.167.45]:42975 "EHLO mail-lf1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232154AbhFMXWI (ORCPT ); Sun, 13 Jun 2021 19:22:08 -0400 Received: by mail-lf1-f45.google.com with SMTP id j2so17855108lfg.9 for ; Sun, 13 Jun 2021 16:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hRCpeFmIYg1JEjTMc8/Ljy8Q0O+bWExH/qyGdjQ4Qss=; b=TxcVq8hqCuc+T+N2Wfds3XQrEZzsvkf0Yxb26VeHRn07YVIOllCCvPTNQsyntTv2nv pjMdY8aazKodij8tVBphYmaXpbiuh81XQafg5a23NaUN2zU9DLqV2O0U1B4RDxoUbwn2 Ci8BKZer5JDjnFct1mqVXuQLsk89Ltgjke6gmqSTw0cWgfK7vyHe3vwklK/rBRCy7pTB SoFsalp3HRY+vBxWSuEJ9sHzhYncGvj+krzK/OGxRZTKp6eyCY1gmGu69GvmGmkjIMGl 2VZjgqDcWJXhlxZBCUwqY5SkJRsIZLy1TK+DVoPcmTI0JzD8YRdDYCDDRrFsn0HxHJQj 7QGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hRCpeFmIYg1JEjTMc8/Ljy8Q0O+bWExH/qyGdjQ4Qss=; b=keDqwB1hZ28dRfWVN8xEr1tXjY9kSWMo5S74wtmnkfcFWj0Cs7FP3miBNQLIiqNYnx wOYl9jZV9voB99YtzTNMZEQdC4oxSUoiswkiUMDOcajDmBInTDRYtFzKd5381w2ZKsHf bCiGOgZl3ba/gQfPAwM6mOyvsNGpAxoO9DQB0dozEd4liaI3gcYmYLdnxQUc/zF8KAza Gy6Z/T4YTLh9+E1UqVbBJmfScBM/Bd/J/HCil8pjU4dRxAEHIk4mgMiKJFdEEA1rj+op 0oGIypLGQjKMhvxTcGr7jcplEPe36tvvYXc/DWbkXfKtUKlkaWX1s95lF3LljbZET5Kl vS4g== X-Gm-Message-State: AOAM533+bT2/GWCJIn04bo4SLDIJkXfmp80+ay6ShyoQtG6giPpgeLi1 NHYGifEo78ToOCh8HTvmY7YrpQ== X-Received: by 2002:a19:7402:: with SMTP id v2mr6641845lfe.398.1623626329589; Sun, 13 Jun 2021 16:18:49 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id y20sm1295781lfj.236.2021.06.13.16.18.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Jun 2021 16:18:49 -0700 (PDT) From: Linus Walleij To: Pavel Machek Cc: linux-leds@vger.kernel.org, Linus Walleij , Amireddy Mallikarjuna reddy Subject: [PATCH] leds: lgm: Fix up includes Date: Mon, 14 Jun 2021 01:16:47 +0200 Message-Id: <20210613231647.511805-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org This driver is including the legacy GPIO header but the only thing it is using from that header is the wrong define for GPIOF_DIR_OUT. Fix it up by using GPIO_LINE_DIRECTION_OUT and including the correct consumer and driver headers. Cc: Amireddy Mallikarjuna reddy Signed-off-by: Linus Walleij --- drivers/leds/blink/leds-lgm-sso.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.31.1 diff --git a/drivers/leds/blink/leds-lgm-sso.c b/drivers/leds/blink/leds-lgm-sso.c index 6a63846d10b5..4c70f7d022ac 100644 --- a/drivers/leds/blink/leds-lgm-sso.c +++ b/drivers/leds/blink/leds-lgm-sso.c @@ -7,7 +7,8 @@ #include #include -#include +#include +#include #include #include #include @@ -423,7 +424,7 @@ static void sso_gpio_free(struct gpio_chip *chip, unsigned int offset) static int sso_gpio_get_dir(struct gpio_chip *chip, unsigned int offset) { - return GPIOF_DIR_OUT; + return GPIO_LINE_DIRECTION_OUT; } static int