Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4614451yba; Mon, 20 May 2019 00:09:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzw8ADUcjMvDnq1cMIgbhADiZpDQjwBBSHu+PPzPZr9xcAXZkwlsoPYtDOrbGq1aT8ZhY8 X-Received: by 2002:a65:614a:: with SMTP id o10mr56796289pgv.258.1558336141793; Mon, 20 May 2019 00:09:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558336141; cv=none; d=google.com; s=arc-20160816; b=uZAMRsavokTjPPVFzb5XU8Zxzx8XVQ/ts3KLBCdv7SihAv5hkCBcZNdD7seCv7/9Ex BGk6bcj30f5qbOkzRsHpPh1PPFPXsg/CZPOIypWjoUbgvykkOBNRPgk2Wdx/ttN4Tfz0 rhto1TMjDwQLEvwsOJTsGk0g3xFCM4n0bcLYSICCcti8wgtLBcOkikf3n80yj/p6ZNNm UG+MhUFE+TVTkQp1VBcwSJccIfbPpaCoMTss5M+VJZr50+DdQBiRrFkKp0miAODeyizM Dawvs3lugw7mcUe3MhjRU3vtBjlFiIdsqRXVcHN1tYkfP9uGTO6dotAgVqEHSgkM4gRE a6bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=CV65XuoVfWbORLC3QwcYmvS9+lxjCJ2sZGYpo27bAno=; b=cl7WtfOQ7Z3R3rkoksY+NRJpl5mp6a7Ge1FwW06jvC3SRIWQ0/OYDRXGNNFS8rbx32 1ZGMA5qwkTyZP99boNVxLSwe40oMA8xcjwrzUOSQTffV3mNjcmzFun3/t94s0lIDmvSE eG1cVb5XWlyaSVnCNJnh8HH7by2TwYVvbbqpIhjDPAuMnXoMEH2bi4sbuo3ukuU+tMnh gZYj5yjwXxQuhbtDXuUn1OPQ25q4g3YOU12Ooaaozzf8D8dfCffr/0eRdtC4c/W+eNGN q225OBcOGEdQzmyQEDMYxYQWdrUXJu0NxCmn4x/HJuQe7R80J7cpzld9KQbOoc7/Axew guaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=HueEfz4Z; 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 u21si12766124pga.151.2019.05.20.00.08.47; Mon, 20 May 2019 00:09:01 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=HueEfz4Z; 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 S1730701AbfETGOf (ORCPT + 99 others); Mon, 20 May 2019 02:14:35 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:43675 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726741AbfETGOe (ORCPT ); Mon, 20 May 2019 02:14:34 -0400 Received: by mail-oi1-f195.google.com with SMTP id t187so9092947oie.10 for ; Sun, 19 May 2019 23:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=CV65XuoVfWbORLC3QwcYmvS9+lxjCJ2sZGYpo27bAno=; b=HueEfz4Z/zw++PW9pR3nsrU/CWPyaFlVR6fCdgfSxL5+jcK7lO95ZWKdm/C4QVxD6v EJue1bc7GmXSymsaCMYnpK1tCUeYboF6ZLhqGFkCJZBFTroUWnBy3p5CWA33wDjOOmx5 6KlUrmx80lOh+8cToVCypfVoWu4CK6Yuz5zC/CNhedkRNAQBAgHEefETQ9EuKml6dKgA mB9k7zFhXgCgstTbbkOS5iZgu4HZ9zTune/mPZ1jMBoNFafEzOLHMfUL10uzQgDdniFi ZsOgtE6VHc84rjwzkj5z5G0vbnmxxARGKthtWQf4Iveb46/QShcHDVloXo54eqIF+9fh XLuw== 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:content-transfer-encoding; bh=CV65XuoVfWbORLC3QwcYmvS9+lxjCJ2sZGYpo27bAno=; b=rjuX1ryuRJLuJnzzYmQAIK22RXfc0hxD/k+EOQGAq6LgefDrwAyC7kprqnlUmgc+UY 8G+1ajWggkr2qojoiPcuhb5Elg2uQ+NeOutr1WN0wumEyN1Vo+Zjr00Ivi7KM3st3Znm VtVczLqFjtzz4LN4B3hWFEEpIP626JMxXDvyY4WjJ9uFUnZqLa6iygHzznUxhN26h7CW dfCQK0HEQaD4+TQ9m6dgQQIsAunw0TZWcT90wWblj+v0fffU6OJaklFvqrx7vH8rM7kq MiwwvKlZelwNYr7cLGVbRjvk8Oy+u5nhk7yEZpIkSPSdeYu8dwQF/aKhQXGwirrJYUay TuFQ== X-Gm-Message-State: APjAAAXwNDIsS1RWO+8LU5Guri4YtUiJgeEWQ6rd1lpDOYMqj3KNRSaj R2RSI/5Kdmg33CEZcPepNmng1iXdndbRTyY5c4UtWI5g X-Received: by 2002:aca:5704:: with SMTP id l4mr21921526oib.21.1558332873902; Sun, 19 May 2019 23:14:33 -0700 (PDT) MIME-Version: 1.0 References: <20190519204012.31861-1-brgl@bgdev.pl> <20190519204012.31861-2-brgl@bgdev.pl> <20190519205235.GA19630@kunai> In-Reply-To: <20190519205235.GA19630@kunai> From: Bartosz Golaszewski Date: Mon, 20 May 2019 08:14:23 +0200 Message-ID: Subject: Re: [PATCH 1/2] eeprom: at24: use devm_i2c_new_dummy_device() To: Wolfram Sang Cc: Bartosz Golaszewski , linux-i2c , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org niedz., 19 maj 2019 o 22:52 Wolfram Sang napisa=C5=82(a= ): > > > > Now that it's upstream, use the resource managed version > > of i2c_new_dummy(). > > That was fast :) > > > - dummy_client =3D i2c_new_dummy(base_client->adapter, > > - base_client->addr + index); > > + dummy_client =3D devm_i2c_new_dummy_device(dev, base_client->adap= ter, > > + base_client->addr + inde= x); > > if (!dummy_client) { > > Oh well, the confusion starts already :/ devm_i2c_new_dummy_device() > returns an ERR_PTR. > Ugh, sorry for that, especially since I followed the discussion on that series. :( I should not be sending out patches late on Sundays I guess. Bart