Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp231119pxk; Thu, 17 Sep 2020 01:11:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjMlxYoasmi4CR7pH6xf6J/WxqLPzTFEx2v2HcFJfdm57tCIXwmOIBWMPGqvwcJWjUo/5W X-Received: by 2002:a17:906:370a:: with SMTP id d10mr31051768ejc.393.1600330261161; Thu, 17 Sep 2020 01:11:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600330261; cv=none; d=google.com; s=arc-20160816; b=fwKowYIsR/t3qfdkXNUtvyuE2TN2/xj/oDzZL572HufvcNij84ubcWfzFJUVQMeuPs V5wFkScR3INm3mxp6A2GBjMDqSHNfK56OPBtZ0ZNYYakFhKok7cb3ExrQTvw+KHS8Fi9 yuK6vnWW7t8W0wKIM/vEae3smPaqjij5q+ZJqxNeYFRgqSW4jD0QadqENwpP+cmPtx6y +BTdWeE8axqOLYYbPOvTIfLLXWnreGi7ea0/XjmJj+qSR1t230XT31fvPcO1XAE1DzOk ruvl4TyPawpHtora9+Z7+UOgA+MGdHHkltsc9XfZ6oIjdxTugJa55KKXKv3m0Tnf7DAV Sxog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=y5BAoQ8Ga3wPT4OqKnKaprIGJrT/HusINmypTex/K/Y=; b=QqCb/xzSG7PcfPOOZAktYoqyqpGAhq4edtvU+l7hKMgXGJRP7ZdckxY+SkNI1GgJsi OCDDG5KwDAG1vf7lhoR2HzY1oJpgynBIiwdS6jtbhe0IgjU0f9TqI1dBjAnnSPJ01aeR NcGDn0DzSkkHWjLOGOCu+iDfa8dNJtXnIujbe+irzxhTh7fIdwNLdaf2wF4IaFi4NUek x0STSluVIsaRo4W+r7P2F67vvbvde45rS5sMBCrVAWcBZZsqMr8cEvflBDvfzNcK2iuR 5QhQHtgk2oMM+e5R8OWwhwe+rREPjPIBmTSYlklu2Q3sWfpMYgXeOlxJK+wHuf/CJ4k/ D7sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=fykaRfQx; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sa7si14350565ejb.714.2020.09.17.01.10.37; Thu, 17 Sep 2020 01:11:01 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=fykaRfQx; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726475AbgIQIHT (ORCPT + 99 others); Thu, 17 Sep 2020 04:07:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726350AbgIQIGf (ORCPT ); Thu, 17 Sep 2020 04:06:35 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79F38C061788 for ; Thu, 17 Sep 2020 01:06:19 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id lo4so1961897ejb.8 for ; Thu, 17 Sep 2020 01:06:19 -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; bh=y5BAoQ8Ga3wPT4OqKnKaprIGJrT/HusINmypTex/K/Y=; b=fykaRfQxvrMFJBznzJC/4DXMvQdeEBXRCs0ipScrz7+TPQLj/PDg3NN+YFiRbyaU7B VJO+L2D9In6sycTN85X+zrnOPiWVZ33kF9HGFGbrlfbnwBg0dIdBOWuC8cNxDwuihD+J P4nRreyyL/zIRM0SJn02HVctVDiqEtYYyR9aenjUWScNfPljCalUFsOnwBCrcCH5quHp avU/HWv8vqjAsxTfDotKNqdqFIskXaAuxTC27+MdJAUeOCqeE5k1UsIomEze3gkAj2b5 JGnjXp1o5yfQLIp4yFsLPzI+JNF8wTuvjEWgyYgf0V53kg0zkpIL/tM6lSUzO6kwWews MoMA== 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=y5BAoQ8Ga3wPT4OqKnKaprIGJrT/HusINmypTex/K/Y=; b=jXdyj3cQtYy9e9POW2fPWrhkcs24Qw0Xrh5kepThyJ2gu2Lk/TWiBszx1cJbRPw1OG zB7nO3xW6429cw9junZp4NSAlXbbkLs7mIlBXNe8E1FgGtDLqYyngRxLYgYir4F/Uo84 EzkxcOBegFiF73WYHcLksOQC0XzP9JrfPDvUk8fjGZYfHzwh8yI/epNkBYlC7NH78EQL QE5utrkUvUy8Yt2KE88NgiE+rUybE+/0kF0ipYQvZRT+Q8ejVoLYQZLGRmwz2m7Hm2lo jhbe+lw6d++qKbGw3E6JpkLKWrVKrfeXG5Fclj10rjHU9QRopgVU/OsWl3P0iT0N0L96 35hg== X-Gm-Message-State: AOAM531235Qt2ryWPgyykbqUkIGX82QYeIkcldl+UNTQ8llOwpR7hydJ Sg4nmKVybnNmjTeZabTuPd/uVP8fEGygpjqxXbVIoA== X-Received: by 2002:a17:906:7489:: with SMTP id e9mr28986969ejl.154.1600329978090; Thu, 17 Sep 2020 01:06:18 -0700 (PDT) MIME-Version: 1.0 References: <20200916170933.20302-1-vadym.kochan@plvision.eu> <20200916170933.20302-2-vadym.kochan@plvision.eu> In-Reply-To: <20200916170933.20302-2-vadym.kochan@plvision.eu> From: Bartosz Golaszewski Date: Thu, 17 Sep 2020 10:06:07 +0200 Message-ID: Subject: Re: [PATCH 1/3] eeprom: at24: set type id as EEPROM To: Vadym Kochan Cc: Srinivas Kandagatla , Arnd Bergmann , Greg Kroah-Hartman , "Gustavo A. R. Silva" , linux-i2c , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 16, 2020 at 7:10 PM Vadym Kochan wrote: > > Set type as NVMEM_TYPE_EEPROM to expose this info via > sysfs: > > $ cat /sys/bus/nvmem/devices/{DEVICE}/type > EEPROM > > Signed-off-by: Vadym Kochan > --- > drivers/misc/eeprom/at24.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c > index 2591c21b2b5d..800300296c74 100644 > --- a/drivers/misc/eeprom/at24.c > +++ b/drivers/misc/eeprom/at24.c > @@ -678,6 +678,7 @@ static int at24_probe(struct i2c_client *client) > return err; > } > > + nvmem_config.type = NVMEM_TYPE_EEPROM; > nvmem_config.name = dev_name(dev); > nvmem_config.dev = dev; > nvmem_config.read_only = !writable; > -- > 2.17.1 > Queued for v5.10, thanks! Bartosz