Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1067442ybz; Wed, 22 Apr 2020 12:56:41 -0700 (PDT) X-Google-Smtp-Source: APiQypK8UKquwoY7yKwrA2nF+DBcwe6RO7aOtNcWMCQ2QSoOMcIzrBI486ws7gr0AfOpliSD57Uo X-Received: by 2002:a17:906:d8cf:: with SMTP id re15mr37401ejb.186.1587585400910; Wed, 22 Apr 2020 12:56:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587585400; cv=none; d=google.com; s=arc-20160816; b=PbA5inDD0N2sFcxM+pEEeGrnJknac8W6/rtqgBOuZibX/IySVk5rB9i032/Nj2YhMG kh1u26pnzwLQh4+SZmcRtO+GLeQssy6VA5l/xdT+wmC34ceNFwPoXt+996uivkfuND1v qj9I3LTMrwEnzwMrYVfc+MLt/IjkaLZqBMl/snajczJ0mT0SEH+zErc0cxFmlDLieTzP OamySiP1H9Vmf0ogNjHQOb3jVo/OBDbJ404nkA+x3lURv43J6JZ/WS08Cwm2fR2Bey6N 3cElIbVOGEu+HZlxH5UDkk8DA9Po8uo7dE2NzxPDhNOEdLrkygN21Qc3mYZ640O7GRIx q/nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Zs8P//rvg1SHF869DDtGbnL1grMzFoBcMAhWEXUbn6o=; b=vW5vrOYkzbTFPFhbHqJNTnO04oqSm1dwUBLCoS+OnvY6tPUOT/X3JHozZ2QPucGkEh KdgqcbLlP7ecIwtq6IlxFLkLrSxlDVepkPoMED9mBMg1MnTi0A0eWiCz4cJ4ip+quXTz WUQM2DDOu1mw4u0tN+NfI7fsQeDXPgTKohrcpjFJb6+9dnyAGK/joCmQP/YZt42Y10nD LtmcjMNU6KHGNv8xb3jFpehxvwLbSkA55LYUgI+jLj2UdwEfDqycnAlKz4Wr03imDSmz 5gJ/zCHi6bDi8YfSy+R4IPTX9JY9sRlRvutcNpuOpMqGptcL7A/vNCFi9WItNt/Lz58q sVTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KlXXhxuk; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d24si78959edy.387.2020.04.22.12.56.18; Wed, 22 Apr 2020 12:56:40 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=KlXXhxuk; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726475AbgDVTzS (ORCPT + 99 others); Wed, 22 Apr 2020 15:55:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725961AbgDVTzR (ORCPT ); Wed, 22 Apr 2020 15:55:17 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEEFEC03C1A9; Wed, 22 Apr 2020 12:55:17 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id r4so1634956pgg.4; Wed, 22 Apr 2020 12:55:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Zs8P//rvg1SHF869DDtGbnL1grMzFoBcMAhWEXUbn6o=; b=KlXXhxukDACNLMUxpYlTVSzYG6IvesGADSdCuxMosdiu9EKeJNaTlEvk1Ajs9junY3 UIRo9RskUrRx0zTQ77/IZAhjY+dXigzRdC9Hfvm17e8wuVTeyXTR+1BxFhQeGZax8Don bH+R1wrMoEMuqHZwwta9VKDTfRLdi3InCi8Ak0eXzjkxVTrq3f+WVPPRbAMgf7DUCTgW 0TpgX124ei9O8xtv07Vr8+M4fdOdOpmviyfftxoHs73SaVLm3F2msDSVg9spxnupq6o1 9Dr5PrtirY4tjGIl9lppDQvDzlDlhAPTt31Aq8BKnfPFooYEeVQjbgHG+jKuGbiKqSBp oU4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Zs8P//rvg1SHF869DDtGbnL1grMzFoBcMAhWEXUbn6o=; b=VxovGCUo+SBCbk/+VGmKoCTs7tewYAkJWZWV3rybKypIXjSInLEO6vlLwnqi6V1ndB M1EvOOaRKYCOBM6xjf+10koKrXVIZ40k28l4lu/axRGeqCqOrkrJQN1Sdtmafti1YqKw ryFRxziJK+TPgJvULH782Z0AA5tZpQFc2yT0ySZemKTlHaDDdttdZYMJd/KpNvX4+m3S i13vAHEnRqZh7QJxuBAy7s27xR0mKrG9KzvGp64LZiwBsCdQK63EiGTuNz+vvTwGKB6M E1Kfn2q+c2Fgb07ks5nVcYAbK1lVL+A7wtShVwzb6QrLAF5Fhkurjg6Vqe2jDeOZBqSI kgTQ== X-Gm-Message-State: AGi0PubEsG10a+BSH/dhyB6Py9zNIg1JsRBEDJzKYivOIxp7fcnZfkqB +OnnTYREGntQgJps1N76HRxPnfnH2M8vD+h5jCQ= X-Received: by 2002:aa7:8f26:: with SMTP id y6mr206525pfr.36.1587585317156; Wed, 22 Apr 2020 12:55:17 -0700 (PDT) MIME-Version: 1.0 References: <20200422141135.86419-1-tomasz.duszynski@octakon.com> <20200422141135.86419-4-tomasz.duszynski@octakon.com> In-Reply-To: <20200422141135.86419-4-tomasz.duszynski@octakon.com> From: Andy Shevchenko Date: Wed, 22 Apr 2020 22:55:05 +0300 Message-ID: Subject: Re: [PATCH 3/6] iio: chemical: scd30: add serial interface driver To: Tomasz Duszynski Cc: linux-iio , Linux Kernel Mailing List , devicetree , Rob Herring , Jonathan Cameron Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 22, 2020 at 5:22 PM Tomasz Duszynski wrote: > > Add serial interface driver for the SCD30 sensor. ... > +#include Do you need this? > +static int scd30_serdev_probe(struct serdev_device *serdev) > +{ > + struct device *dev = &serdev->dev; > + struct scd30_serdev_priv *priv; > + int irq, ret; > + > + priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); > + if (!priv) > + return -ENOMEM; > + irq = of_irq_get(dev->of_node, 0); fwnode_irq_get() ? > + if (irq <= 0) > + irq = 0; > + > + return scd30_probe(dev, irq, KBUILD_MODNAME, priv, > + scd30_serdev_command); > +} -- With Best Regards, Andy Shevchenko