Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4371489yba; Sun, 19 May 2019 17:49:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPSJyeRbu8ZVeBnMxST9GP+L2EVGfkelW67u3ZXLjydy+kUGo+o+VFvyPptjP5ufXMzVQw X-Received: by 2002:a63:1344:: with SMTP id 4mr71421202pgt.448.1558313350900; Sun, 19 May 2019 17:49:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558313350; cv=none; d=google.com; s=arc-20160816; b=MRE7YjpzLM2bqoIvL+//4UU5EqtqSgFPt0WrOePhnMX15El/46AvFFQmHIS3dx67on TG8Nst+COHZqJIMoXeO46XeyZmLHkRwBq1UdPU7qDm1o8UoO7iNjfO9AlKO5qNws01JM NRqFWnhdWmIJhZUhSaZcnlIR856KQPZe2u7+LFXNBlw79Q6JZiU1Z8+ZQpNKNHixBAFH JBmdOuL/ZOuVRFsYm01WYZGqq1Npks/UY3aNf+DvEZgayW6YiWKeOqlPijfWfTWd913P 1g++6XIhFjJ/0GWF16sft9tAeRcDpa8RPoCCgbLku1PgyMNtn0r4EcORtYOo0NUksNw3 HIkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YAZlhjp/ohxLS0t87o78O2EvYsPVaGtkbliRj3/jMn8=; b=yu33Bqq4GsCm9YsniiQOpe68+eTGLEqi1AnBtNrVhIybwV2LdZfWYWVzfkjVhswZME 3vxw+s1wIFtPI4l1d47W9vyZlW3TZ7O6hdp2iOD5VdqbmpqM187GWMTCzT5YUGPufwy4 8TRG3P5mF8yUFs2JXDUdO5NxsvESvF/5Wtco7X94eI78cDS5nvfOiHpflVBg1CFWs+ar uPqbhNEanXc8RtQquvgfo2CQ5BO5xMETQRYuvHTsBViDTbw4ypekcZ4H4x1H/EYdbcMl YEZ7I0nf1AY61oR4ISaY2HJyx0ZUasdC28NXYdEpkdd5dLu7KMsV3Y/i8LsUbRpJ0b4s zGhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h29si16050712pgm.303.2019.05.19.17.48.56; Sun, 19 May 2019 17:49:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728954AbfESUwi (ORCPT + 99 others); Sun, 19 May 2019 16:52:38 -0400 Received: from sauhun.de ([88.99.104.3]:45776 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727620AbfESUwh (ORCPT ); Sun, 19 May 2019 16:52:37 -0400 Received: from localhost (p5486CF3F.dip0.t-ipconnect.de [84.134.207.63]) by pokefinder.org (Postfix) with ESMTPSA id 4662B2C360B; Sun, 19 May 2019 22:52:36 +0200 (CEST) Date: Sun, 19 May 2019 22:52:35 +0200 From: Wolfram Sang To: Bartosz Golaszewski Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH 1/2] eeprom: at24: use devm_i2c_new_dummy_device() Message-ID: <20190519205235.GA19630@kunai> References: <20190519204012.31861-1-brgl@bgdev.pl> <20190519204012.31861-2-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline In-Reply-To: <20190519204012.31861-2-brgl@bgdev.pl> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > Now that it's upstream, use the resource managed version > of i2c_new_dummy(). That was fast :) > - dummy_client = i2c_new_dummy(base_client->adapter, > - base_client->addr + index); > + dummy_client = devm_i2c_new_dummy_device(dev, base_client->adapter, > + base_client->addr + index); > if (!dummy_client) { Oh well, the confusion starts already :/ devm_i2c_new_dummy_device() returns an ERR_PTR. --gBBFr7Ir9EOA20Yy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlzhwg8ACgkQFA3kzBSg KbaunhAAnL04MZbjXegMV2akY03VuGzVoHwLdRndBqHOlG33ZNd0u4Wmf+fDv0ju ddWxKuGDH7XShPa4n29ohHIIY4F6urlQV0zrs5eBS5vHLu+GEmeeXkic+a2wn3CA O/Xnkgo5N7CXPGv9sTDX+IY3W86ZiKrioj8LcXXVdNcwNm15qGCgbN8ncUzxNrp5 XbJFjGFdoFcBpigZPqK3Pu44yRgdKfBS3eyEzGxwHcVQhaCbxysjMGRtfZwmqDKY gJT2t3f7hXgK8gvcR4E/XvAT+v3TCvMWw9PiYEKhB+KmxDAQPEIGZFjptPpqsgcF BCkABUuuknAx4Hl9OaqwrmezyAAnTZorIQUO2RYGk0pydiXEp5wvB6OREdxsARax CYCptB747v+dkTUZ3ieoJeqj++lMpwH08jqydR3vIstJ7/mZ8YWJLxh/yIX4ew8D XWj5VXFhleRi+AkfoV5ZT1mkJ1nZcUVMZTExhigkRYLipuyxjfbpwrlOwnpeBB2u hj7gJ6yGxSlZRCr/kUXxBt5lHKe4677babpk1iQDXcyHK+EgXfJSbwu7K1FDXj2C b8bWTaPgk8U8fw83BEtYQFruUdn2frsxSRex+qEmLdCHuLW3OCh//8sEbQ60vOsQ h8r27tRSssN1RcQS36Vhrh8lgtR1ikXZnQfilyp+QSukd6BMMt4= =jlLR -----END PGP SIGNATURE----- --gBBFr7Ir9EOA20Yy--