Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1761079pxj; Wed, 19 May 2021 13:18:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsfuWHUiOCzB3m/7iNSQ+dLGoDs12XQzrZMrzU2aC1NOpPPr/R+N7cfGnlAosAxV7SSpsu X-Received: by 2002:a05:6638:37a6:: with SMTP id w38mr1039376jal.106.1621455492260; Wed, 19 May 2021 13:18:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621455492; cv=none; d=google.com; s=arc-20160816; b=MPi7mwwkmIg/FvD8oMDYdqgr9TGt5ZDF57DOILN0jecY/UnJkyM7nySVE/yHaRCGxH NzNmBlHKUqcXTY+lHUGXTveDeQKX1/ZORpXhaXhu9LVQoA1Yue4FUg9Jg89RBRekA1RQ v/RUeBGdNkElA7fdPVNIAuE1weoDYL/u7TRmq8pI821rga04DttAQ3/FfkIxkFTG8EaI +nZj+T3PKA1aLpzPB5DMEMUqVnGsJZWXn+CxhKg4fx2ATlhK0duNTTAN+GynaTNSIM1n Fz0yn4NCqyEutEJneTF4PeCzzNMi0JiScmd75DwzYGF3lorym0GbSBkXSn2N5jyON7zZ 20Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:user-agent:date:message-id:subject:from:cc:to :dkim-signature; bh=/kRF+2EHxjIXcYwxp+VA+flXrKrf+D+9tOODi/MubSI=; b=AifYo8xyNvwcRiWdxW5deB7E0LTiqBdoRRUwYerAkZ8AZDLR041EswB20HQgosUDQn Wav1ymWQ2XD44STjlUo3bCEyzXZr//Vbvq8lzNC9BzDAFCXwwqR8y/ePqm1+LKNDvw54 zsH70t/VJeOLYt5etMCfXjvfi18dDIwQX2/GXsUiSEKWkHaMqzD+/S8Tl/vBoqhwv9vP To88H6dDoaeHNoZXRAESnUXlyqKipgIijYSsoLzMSTpoCIY0oGnE+zRAeRYhE0F4wnYv 8pLP5ejsUGRkhgyBrjFtYzx84twMLN9ztOyba2d8F9sKEV0c9aq6YI1DEKiKpLklVgJW NC9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="X/7NE43V"; 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 z14si258519ioq.100.2021.05.19.13.17.59; Wed, 19 May 2021 13:18:12 -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="X/7NE43V"; 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 S242857AbhESQdi (ORCPT + 99 others); Wed, 19 May 2021 12:33:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347548AbhESQdh (ORCPT ); Wed, 19 May 2021 12:33:37 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 703B7C06175F for ; Wed, 19 May 2021 09:32:17 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id y14so12602164wrm.13 for ; Wed, 19 May 2021 09:32:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=/kRF+2EHxjIXcYwxp+VA+flXrKrf+D+9tOODi/MubSI=; b=X/7NE43VESjEESZ6BRitT4Nf0btI2iu8vwilepLZIh6FMm0rNcbkg0XPZ9JRwIJEQz KN8Eue+MCa8L22RdPzYSjCoDN7qevxqICHe+azgWzfmhad/Twj4tJzqNbQaMj3xK6vQZ Noqk3zstNpqgSD0fkeLE9ulz962bermNreVbUk8ipQhyB2Eh04pK9p0ZzgpMsJJi/ZaX 32QbrmZ9HEvLOc0NCr+5ssV88N2SxCrATNF+gdQlymYI+RuSBNcRAvejZ/KihcWy6DJO J83U6/KU+ZLBZrwzWHizQxc+3nGs1doPKSfJzad1bW8nZ33yjp46OjRSqgElwjDlzAhD yANQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=/kRF+2EHxjIXcYwxp+VA+flXrKrf+D+9tOODi/MubSI=; b=F9voq9c7746EyWMC+q0hVR7XtTYsPZkSBGlzcjOGu/aafJDXnQ+kmi5w3vi8AOjWJ+ O1hLmn/Ybq+ITh8LqH15IZs/H3xy6787qmK9GJkNRs1TPRV9qoMQECS2ZHrwMNOJL83/ HwVfj4moQ+8Aa3IerNsMnZOz3O1gBOJlZExmDzOMfxjJA+IiDk+tlgiJb3qoyaQ717Sm YqqC8BESBcf4DvdrsxP+r+0QvgdIn9bLhuZQRvTMFNZrMGP4tWEFc5FqIGz057A2T0GQ Lp/q1pO4yNphbVGcDJW/E5OP/2CnTw/8MBtTXxze/JueMhXcQP/rsqjZ71j3VLhcyW8u CFBA== X-Gm-Message-State: AOAM531R9y2v4bLnDG6U9TErdR9e8LbI4A2vDbG0W9p3gqjZMvauDHx3 NiGgVQixFGDz1LJbVYvXbBGjnnvdWCesKw== X-Received: by 2002:a05:6000:1147:: with SMTP id d7mr15924809wrx.302.1621441935847; Wed, 19 May 2021 09:32:15 -0700 (PDT) Received: from ?IPv6:2003:ea:8f38:4600:e5dc:6577:6b94:e9e7? (p200300ea8f384600e5dc65776b94e9e7.dip0.t-ipconnect.de. [2003:ea:8f38:4600:e5dc:6577:6b94:e9e7]) by smtp.googlemail.com with ESMTPSA id u8sm5926002wmq.29.2021.05.19.09.32.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 May 2021 09:32:15 -0700 (PDT) To: Arnd Bergmann , Greg Kroah-Hartman , "Rafael J. Wysocki" Cc: Linux Kernel Mailing List From: Heiner Kallweit Subject: [PATCH 0/2] eeprom: ee1004: Let device core handle attribute eeprom Message-ID: <66e9f6e5-fdee-6963-6131-228c69705350@gmail.com> Date: Wed, 19 May 2021 18:32:08 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Instead of creating/removing the attribute ourselves, just declare the attribute and let the device core handle it. This allows to simplify the code. Heiner Kallweit (2): sysfs: Add helper BIN_ATTRIBUTE_GROUPS eeprom: ee1004: Let device core handle attribute eeprom drivers/misc/eeprom/ee1004.c | 26 +++++++++----------------- include/linux/sysfs.h | 6 ++++++ 2 files changed, 15 insertions(+), 17 deletions(-) -- 2.31.1