Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6648822iob; Wed, 11 May 2022 02:13:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1f+h2DugGr2XO2gnOFTIlHB8TDVrP7GVssPNhtl0T0bcsAe6PXI9qUYkA9hJYYHrDGxKO X-Received: by 2002:a17:902:c403:b0:15e:8d3a:b018 with SMTP id k3-20020a170902c40300b0015e8d3ab018mr25036919plk.94.1652260419673; Wed, 11 May 2022 02:13:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652260419; cv=none; d=google.com; s=arc-20160816; b=P5KEXn3qbId5eWYLpGXYXfq8sV+oQ5z7ssL6749NhnqnWGTO96zCWBrrVzFMJFAVl9 3clnYgunLpHBLfyiHi/P6cSIVV6q2mlohAmU8rMepesXXTakQ62zoZnEvyA1wWEkBx6v O/tPfTbc9N+0DnABfBL+1hPh0x5uYYw9m+4/BVzTHf/hptnAKrS5A5n10QCNP3v9yrCu bLRAG0HRzv7DIrJgvygBp63lBZialDwkxN9ZaQmwU2kB453Q7pCmduROwtxpOFS5qyNO 2jcZjdOL1j7Mnm4Wk9YU7iyxd7kUkh8hbD6fILPKjuNGXS9y4c9ewmIzPLte3m/UyS3x b+vg== 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=eXCPt/BCWQaVDD9rbV4hb7V0FE0WUZ7GvSMXBVR120c=; b=CufiGEGd3f6GujOXz+YlK1dvC3m0GGUlk9S8k1Xb8BLSNRVVksIo3XpzoaPX7H3sTW XawPQV3YMkmDGjEm45ks6UuIlqgrZf38ouqVka8bJ+rpY4wf7OqmrwXedvX0GE44Lf7p RL5tISGnAm0oKCYyee3Hmt8DhEOSzbyWD66m3Qf0fLGxQXN/Cpm4wrpYnSu2nZyPyN/g moKXssp/KH4i5GUgw97HUwjeaJUrS2jvgO7IQL6W1axj61dQmkxhNZbLge7jbnQBUb25 9l0J76Qh/0ZKw8ZqnbT9Y4d8Uat9zEuIhhoZqdsJbgQVHPvAJ3D5uX4Y0jrOwYRreu4l OaXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pxzgFvp6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q11-20020a170902b10b00b0015ed0a19209si1853685plr.236.2022.05.11.02.13.27; Wed, 11 May 2022 02:13:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pxzgFvp6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233236AbiEJUnl (ORCPT + 99 others); Tue, 10 May 2022 16:43:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232153AbiEJUnd (ORCPT ); Tue, 10 May 2022 16:43:33 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4CB52992C4; Tue, 10 May 2022 13:43:31 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id m23so145051ljc.0; Tue, 10 May 2022 13:43:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eXCPt/BCWQaVDD9rbV4hb7V0FE0WUZ7GvSMXBVR120c=; b=pxzgFvp6acwOvgNddOLFZRG1lxSrrLCe99/hYdEaFl1c8+6qLdaza+X0MIAlK3BIwf gfIYx3vDyqctNQwMr7/tmZ8U/Mb2G0YcXVD0PWvSszaM5YZ5HgtvaHGm4Nhhn6SmOS8v h70U7st6uusAPkAbkwpan5yOiJcvy9+f1iz2hV1PPJiK6i6k8wEzXgkELqK19WFI0SnO Yc3S5YrK8OKqJqWAsOGbIF+JgR611y54OR96Qzxnhtml/nFgQSG/aPwNCpVmGCejkLCu k7p7i+tUboOkmWWqR3xyw53AdQLBW4AEdOTFXBF5PN813ChnUfmQ1GtjnjM/uJCMKa8y 4JsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=eXCPt/BCWQaVDD9rbV4hb7V0FE0WUZ7GvSMXBVR120c=; b=ibPROZt/TUQ/CvEj5KLXGZNFzIHuzRa/6ij+20ARUCzkKhNO1xd7uzzpyA184AxD6Q FxnZ+6XNA7HinFCOLVVUvoWsDsIjunVd06PhEdD++FMXU9DOLTyy5cIM0NkdxmiCyYk2 UIWa+kS4Clbo/gqs/jIkMNSFUJM16Z3CXm0pArNvdyTvIQikpichhzDBlmE+yOs8YLtg uoo2uTUB7ZknJEFft2xzRImQL9tBjBUYg+e3C1f1fBb47GvWf4YDtyPUf9+g6li58rW1 pa8EY7gIhwLpRV7/Cy52/ae3mW2YlalgSY9Ki7ZYJyAtCKVxxqcwPeTzRDUHtt0ghgK/ fROw== X-Gm-Message-State: AOAM533QT7Q2b5IpCHjzCNFRGtfUUsXAXqEDzPNIsrBUGGC2TMmojBUP KvGN2zlTa+A5w1gQGtoloerBhvM/M6M= X-Received: by 2002:a2e:9943:0:b0:24f:fe4:4326 with SMTP id r3-20020a2e9943000000b0024f0fe44326mr15043420ljj.18.1652215410026; Tue, 10 May 2022 13:43:30 -0700 (PDT) Received: from nergzd-desktop.localdomain ([194.39.226.133]) by smtp.gmail.com with ESMTPSA id 10-20020ac25f4a000000b0047255d210f0sm12318lfz.31.2022.05.10.13.43.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 May 2022 13:43:29 -0700 (PDT) From: Markuss Broks To: linux-kernel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Markuss Broks , Song Qiang , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Liam Girdwood , Mark Brown , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 2/5] proximity: vl53l0x: Get interrupt type from DT Date: Tue, 10 May 2022 23:42:53 +0300 Message-Id: <20220510204256.8874-3-markuss.broks@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220510204256.8874-1-markuss.broks@gmail.com> References: <20220510204256.8874-1-markuss.broks@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On some boards interrupt type might be different than TRIGGER_FALLING, like hardcoded in driver. Leave interrupt flags as they were pre-configured from the device-tree. Signed-off-by: Markuss Broks --- drivers/iio/proximity/vl53l0x-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/proximity/vl53l0x-i2c.c b/drivers/iio/proximity/vl53l0x-i2c.c index 661a79ea200d..16f809c479cb 100644 --- a/drivers/iio/proximity/vl53l0x-i2c.c +++ b/drivers/iio/proximity/vl53l0x-i2c.c @@ -61,7 +61,7 @@ static int vl53l0x_configure_irq(struct i2c_client *client, int ret; ret = devm_request_irq(&client->dev, client->irq, vl53l0x_handle_irq, - IRQF_TRIGGER_FALLING, indio_dev->name, indio_dev); + 0, indio_dev->name, indio_dev); if (ret) { dev_err(&client->dev, "devm_request_irq error: %d\n", ret); return ret; -- 2.35.1