Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp985603rwb; Fri, 18 Nov 2022 10:56:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf79zvPA9ouxrh9mEvIgHiMKLzL/+/nPWYCWW+YMiNhstJpx8BcOkH4rz7VFS3y+1oqjNl62 X-Received: by 2002:a05:6402:68c:b0:461:b506:6b8a with SMTP id f12-20020a056402068c00b00461b5066b8amr7322151edy.208.1668797764445; Fri, 18 Nov 2022 10:56:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668797764; cv=none; d=google.com; s=arc-20160816; b=ZsYBnUJIWJ3BGDPBs/CiBLnoYE1NLwTIRG++BBC6l7gztnYiGjvOzogVXQ7Q+hJAsT raxx3UwBtlbNdODPF0tQsU8D45Hik8uBEi7N+9yVCV6kbZIHWIcj9UC79v+j7G5Gsny7 jBhAYU1V4KG3ZGh6WOHXYiN+IxXJzUIDnERal85UuUSRW+/Im2IdjwRV59e+sKgKjLCj Dpzbxm8yj+ALrZPIL7H9O2NCOkch7PfX0LmAkcwYBmPNCyHfOwnZnRP2Egk35H7Oscjf u0VySpB1WC6wCbTyHsJUyRdcYs7DPQlYqlzPYPqrsXlxdR1yTbOrXG/H3ESIE4fOSQhE DmUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4ifixsVrZYqq2rmExxDxiS8B0L3Ab5XckFp/Rc/DpbA=; b=e7Y5LTqMbwKFj4BPdoJx51+WMs1VpyqRGfatjkEo88AbRYu6Othwc0ywIqJWGCHHy1 tsv8ECt63v+EDUy4bj+PXNas2dSkK/c9YL45o/TnbvW0ziiWp/M5J3TqPbM+jLTK56qf jgcdLcz/69P9+Uh1ElbR7uD4hmB4PIvc/CkIYLu5wKgmY7DvtvzR2MBKCdrpByN5ZhDP bE/3yRT1ljtcWEVbS7tQQcEp73vTc8hnPwjbxXxqyuYL2PZr+fZkBF/GKlPwxef2Ce8G F/EuX6NHchkOGLOmfU8TJMPC0uqW+neMJ/0Q+KMF1OCLYeego8xIuH3dwTKREgXtcShb lgIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=bWqzKLeu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v12-20020a056402348c00b0045c2e7e5532si4112220edc.585.2022.11.18.10.55.42; Fri, 18 Nov 2022 10:56:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=bWqzKLeu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241593AbiKRSxP (ORCPT + 90 others); Fri, 18 Nov 2022 13:53:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242877AbiKRSv4 (ORCPT ); Fri, 18 Nov 2022 13:51:56 -0500 Received: from mail.3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5F698FF85; Fri, 18 Nov 2022 10:51:54 -0800 (PST) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id D27B02774; Fri, 18 Nov 2022 19:51:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1668797491; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4ifixsVrZYqq2rmExxDxiS8B0L3Ab5XckFp/Rc/DpbA=; b=bWqzKLeuVB84eBhKK0jZHW5dTqpfScX/IvluASFdUbxKK+5QMP2eqSn4224CEyVPv6NCJT +xLBeqb/6Pq+n2SSnCOgv0OZGdsa85WLeabdsfRzfR/eUZW3wI1AWh5eIHXr7uN98aKorT ahRVp+lQyQAwCCnzDmEuypAu0cN+UJv5rx7VSskrpVgVxtfAhvW8sONPFGg8tB45L7I4mU YjHCRkO09sLrQTThMwDC8lLsla/tt/TEOAZjU4ljfSupZOhVudqj4sQd1wxwKMzck834Zu sMNXOf62TYA9aU0iAU6lCYoRqxh0SMDCdkPId1O2MubCxV4LJlCiqIW+b0xWTg== From: Michael Walle To: Jonathan Corbet , Srinivas Kandagatla , Miquel Raynal , Rob Herring , Frank Rowand Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Michael Walle Subject: [PATCH v3 13/18] nvmem: cell: drop global cell_post_process Date: Fri, 18 Nov 2022 19:51:13 +0100 Message-Id: <20221118185118.1190044-14-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221118185118.1190044-1-michael@walle.cc> References: <20221118185118.1190044-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam: Yes X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are no users anymore for the global cell_post_process callback anymore. New users should use proper nvmem layouts. Signed-off-by: Michael Walle --- changes since v2: - none changes since v1: - new patch drivers/nvmem/core.c | 9 --------- include/linux/nvmem-provider.h | 2 -- 2 files changed, 11 deletions(-) diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index 264a15d26c7c..9234c7d87a69 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -38,7 +38,6 @@ struct nvmem_device { unsigned int nkeepout; nvmem_reg_read_t reg_read; nvmem_reg_write_t reg_write; - nvmem_cell_post_process_t cell_post_process; struct gpio_desc *wp_gpio; struct nvmem_layout *layout; void *priv; @@ -895,7 +894,6 @@ struct nvmem_device *nvmem_register(const struct nvmem_config *config) nvmem->type = config->type; nvmem->reg_read = config->reg_read; nvmem->reg_write = config->reg_write; - nvmem->cell_post_process = config->cell_post_process; nvmem->keepout = config->keepout; nvmem->nkeepout = config->nkeepout; if (config->of_node) @@ -1566,13 +1564,6 @@ static int __nvmem_cell_read(struct nvmem_device *nvmem, return rc; } - if (nvmem->cell_post_process) { - rc = nvmem->cell_post_process(nvmem->priv, id, index, - cell->offset, buf, cell->bytes); - if (rc) - return rc; - } - if (len) *len = cell->bytes; diff --git a/include/linux/nvmem-provider.h b/include/linux/nvmem-provider.h index bfaba5227ac9..12833fe4eb4d 100644 --- a/include/linux/nvmem-provider.h +++ b/include/linux/nvmem-provider.h @@ -85,7 +85,6 @@ struct nvmem_cell_info { * @no_of_node: Device should not use the parent's of_node even if it's !NULL. * @reg_read: Callback to read data. * @reg_write: Callback to write data. - * @cell_post_process: Callback for vendor specific post processing of cell data * @size: Device size. * @word_size: Minimum read/write access granularity. * @stride: Minimum read/write access stride. @@ -120,7 +119,6 @@ struct nvmem_config { bool no_of_node; nvmem_reg_read_t reg_read; nvmem_reg_write_t reg_write; - nvmem_cell_post_process_t cell_post_process; int size; int word_size; int stride; -- 2.30.2