From patchwork Tue May 4 07:53:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Ardelean X-Patchwork-Id: 12237553 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5014CC433ED for ; Tue, 4 May 2021 07:53:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2DD42613BC for ; Tue, 4 May 2021 07:53:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229911AbhEDHyI (ORCPT ); Tue, 4 May 2021 03:54:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229867AbhEDHyH (ORCPT ); Tue, 4 May 2021 03:54:07 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D41B7C06174A for ; Tue, 4 May 2021 00:53:11 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id di13so9358786edb.2 for ; Tue, 04 May 2021 00:53:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=deviqon.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lf7JgZ3blTyvOrF1aLK26XvbgJBM+NI/3saP4VWsBSY=; b=QadQqO3Qik9eILpeT3YEoUPZ4UoN5k1eF3Sh91H6eVNWYJDOYVhxHREfQPkgj1xzrk BMw+gEHupyZUhKbSbKTKV2p8CtVQGnGCB1PTwX6IZiHd6GW/gQlTywhlzUk9NDRKcugi XHKSH21itkzKShheaymXR/ZrOA85gqGvGAATTapYWmZXecwqXdyQ6gwc9lsYIdpJg2Uu /UvsB8TQWUySMk+aEoIhJh1IijEZWRQPOUn7hZIJ9uMl/fHcJ8Y4mtEpCB/smXHgAq3p Wn6Gqoq/EcGc0uBcF2mpJXLHKHy4ABRmP0YJ5F2+oPl6RuHMm1ZrvO/LCNkQQal7fUYQ fdxg== 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=lf7JgZ3blTyvOrF1aLK26XvbgJBM+NI/3saP4VWsBSY=; b=bhg2ZMfTXuMZQI/sf5mpFonkY5r9ButNEmrOglx6/4fL25AJnGut1xvghwy/XT3K67 oXCMHX1XOGpkAxRR96iF3hnAqI7UnkXtQKAWAU9H3aIx3ImaDwkcF2eu1o+DHeqlz2x7 rXqjfWBtHV05bqmt+vEQy3AsibIPSo/k2E6rkJ0Mv07vGc+nJu39vYFj/CrTppkW4vFX nrrbHQYRhiFJ0GG8qNZpqlmtM8rh3Wi6D2pI88AtopATRHRM9KsSeLHTdpXWa+Pabigr LqR2cB2xMpgUjgwrMb8GnAjoVlNi7hN/fP6Mqlth+xAuoYXbG3VdempH+SQEnDd8g8MG vvGQ== X-Gm-Message-State: AOAM531LGpgqdCUxQiT7mVBVPyEV6Mx86eGT+1gA8GC5srgEiLY75gIB UzQvayWRRKydf9FzwvDLvYvJgajtafiRyw== X-Google-Smtp-Source: ABdhPJz1sIZSsRgxzLI1up98vgG/lL8YsRbeMX8JKKQMxMPqOP+wEW8D9AF34nGs7J/wBcPQgmnc7g== X-Received: by 2002:a05:6402:b91:: with SMTP id cf17mr25123814edb.19.1620114790027; Tue, 04 May 2021 00:53:10 -0700 (PDT) Received: from neptune.. ([5.2.193.191]) by smtp.gmail.com with ESMTPSA id c12sm15177437edx.54.2021.05.04.00.53.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 May 2021 00:53:09 -0700 (PDT) From: Alexandru Ardelean To: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: jic23@kernel.org, Alexandru Ardelean , kernel test robot Subject: [PATCH] iio: adc: mxs-lradc-adc: use iio_device_id() helper Date: Tue, 4 May 2021 10:53:04 +0300 Message-Id: <20210504075304.148516-1-aardelean@deviqon.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The @id field was moved in commit e58bb7a74dca ("iio: core: move @id from struct iio_dev to struct iio_dev_opaque"), however this driver was omitted by accident, because the name of the IIO device is 'iio'. This was caught by the lkp bot. Fixes: e58bb7a74dca ("iio: core: move @id from struct iio_dev to struct iio_dev_opaque") Reported-by: kernel test robot Signed-off-by: Alexandru Ardelean --- drivers/iio/adc/mxs-lradc-adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/mxs-lradc-adc.c b/drivers/iio/adc/mxs-lradc-adc.c index 30e29f44ebd2..1d99170d3328 100644 --- a/drivers/iio/adc/mxs-lradc-adc.c +++ b/drivers/iio/adc/mxs-lradc-adc.c @@ -455,7 +455,7 @@ static int mxs_lradc_adc_trigger_init(struct iio_dev *iio) struct mxs_lradc_adc *adc = iio_priv(iio); trig = devm_iio_trigger_alloc(&iio->dev, "%s-dev%i", iio->name, - iio->id); + iio_device_id(iio)); if (!trig) return -ENOMEM;