From patchwork Tue Mar 5 11:34:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ricardo B. Marliere" X-Patchwork-Id: 13582224 Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90FAD56758; Tue, 5 Mar 2024 11:34:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709638459; cv=none; b=oGwfFKzYFzwWpbjVX1hRQ530GWU062WVdSQZzzr1cVsnLBU9PrzBLx4k/si5m0y6KbhMitXsqP/Pznw569+WmHSBJj+gNTLKqm0cpuTrR6RRTRv3xoWPTGYMlYhyo+aRvl8io62JrS2F+tLycIprc2ozabOCHHUIcY96ls6uM58= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709638459; c=relaxed/simple; bh=p3Usdi8NEVn9t1kDJN4YA4fwxeibQbkfEJtbw/RtQ9E=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=QyumykCvjYoH4nrZZ3aojMP635jFBlaFWMj4L4uoeEQRAoNeb7+P62JLVSyUA/16KgQfdcoikIzPpRTOqBowodMdKC0rYhMLG3EDswFnuP9gs+NeHPPhJBIXed8zu3hyNmmZS/W0aqujHB8E/YT0ScjC9YpHyWaQ8DNMwA2+Jsg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=marliere.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=marliere.net header.i=@marliere.net header.b=EZzuJhDl; arc=none smtp.client-ip=209.85.215.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=marliere.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marliere.net header.i=@marliere.net header.b="EZzuJhDl" Received: by mail-pg1-f171.google.com with SMTP id 41be03b00d2f7-5d3907ff128so5436030a12.3; Tue, 05 Mar 2024 03:34:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709638457; x=1710243257; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:dkim-signature:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=9c7P4AsN9fpsoKzoJwB6VptYp+jLXrzfi7VE5UxanTA=; b=Evt7V3saS69l813KZtEs2RSrXhEzcBEQPDQgClWRVn37QOPJBa334qVFXHxhz0+cRM 3QxLFKfKE6DCi0U+6dCOSkhqUsFu9RE1fUdBKwpTgR4Vw4qHgZpCu6e9ypnodJrtkQgE 5z8pFnNjzjz0gHEJmm2zEibbkdzztBF6SG0TeoPvcsXsy/35v4Hh+lco3UArZkkO8GL8 6a6FRT5/UeePWsh4zPw/zAEILrlz+TNJfvfpdRRSq1NN+QgMBYXkrLsnYHW0JfMndnx3 QY7rZHJ+IwpSzLjuvspYZdekjMN9hCDHTvvfO8SOG2lkNpiiWx+UNGHrdtTWL6KM1AHs tEcA== X-Forwarded-Encrypted: i=1; AJvYcCUhzsC6FVF6z3opCzwvfHJE4f28RIZpYXp6byO9mgiaPQezkV38O3SXs7TRyyfgb/9GMeyZ6tid3Xv4YCPQXtidhmgrgZt3xnNlMnZRllfMIWrud2z3B9SWnxgY5DRB6A94OpOKE4D2q3UrIkb+If5x1OtawkaAB2NjU0CsT2sXxObwSwr1yA== X-Gm-Message-State: AOJu0YyUFV1xAURZqGM+gP189z35D4sdu3VPEBNfX9Qv6gQVqfInwozp i59kXMcsid+iPdDYQjk4GW5w0ZqfKuU8zSQTwYrKm0NHjXRxGKWp X-Google-Smtp-Source: AGHT+IG4B5z9Zy4ubA8gJ37ztpvtPxKGdu9NA4uzuoP9LtUTMWn/0u3QcLizO1KljrTaW00G2xY4fg== X-Received: by 2002:a17:90a:7e14:b0:29a:6b1d:4d32 with SMTP id i20-20020a17090a7e1400b0029a6b1d4d32mr10346649pjl.38.1709638456902; Tue, 05 Mar 2024 03:34:16 -0800 (PST) Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id m2-20020a17090a858200b002997a5eea5bsm9288490pjn.31.2024.03.05.03.34.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 03:34:16 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2024; t=1709638455; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9c7P4AsN9fpsoKzoJwB6VptYp+jLXrzfi7VE5UxanTA=; b=EZzuJhDl4Ssk4Fi41+Okkg10V6WH7NcFhK67GLnCe1BxspHdOcMnj3FxDPCl6GML7YRi3Y cKvxCexnRt+T64GDvTywq19VhFSk5ho/jEpqnLHTKkriq5H2/J3oBQQyMJJfKlbPv4LaWO r6un1Zq7cSg5zSEk6Ls4y+2vURLWHEIRPcMqngBx9kgzz6AO/Wg4JfILDbRKZ8mz3n72tO uIpjgM9gjKlb8C+S8V/1kCXli2/F04ABL3lhJpd0AGLOAT5P0LS6KyTXsXYlpJHjyI7xlg 2DKYFTnNuVOc57j2mJPXfpJqd/7yInxCCnpaHA19nh15UjvYDmwftoezTdRN7g== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Subject: [PATCH RESEND drm-misc 0/4] drm: constify struct class usage Date: Tue, 05 Mar 2024 08:34:09 -0300 Message-Id: <20240305-class_cleanup-drm-v1-0-94f82740525a@marliere.net> Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIADED52UC/32NzQ6CMBCEX8Xs2Zr+SEw9eZCrBz0aYmpZZBMop ItEQ3h3Cw/g8ZvMzDcBYyRkOG4miDgSUxcSqO0GfO3CCwWViUFLvZdGZsI3jvnhG3Th3YsytiK zyruDeRpVaUi7PmJFn/XzDtf8ll/OS7xUW2IPRYKaeOjid9WOam3+MYxKSGGttM5oayppT62LD WHEXcABinmefzfhP5fJAAAA To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Hans de Goede , Helge Deller , Sumit Semwal , Benjamin Gaignard , Brian Starkey , John Stultz , "T.J. Mercier" , =?utf-8?q?Christian_K=C3=B6nig?= Cc: Greg Kroah-Hartman , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=1275; i=ricardo@marliere.net; h=from:subject:message-id; bh=p3Usdi8NEVn9t1kDJN4YA4fwxeibQbkfEJtbw/RtQ9E=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBl5wMyRfmZWlIW2DOu9EcfD+rKMK94X4PZQG5Qu j9nn5dUX5CJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZecDMgAKCRDJC4p8Y4ZY pteSD/0VhMbV+81x3Qef/ijLUpc4bA/SSiwYbaX5+ykAiohgXbj0E5Se3sm6qSQ4altuwdLHHmN OIPbaBuhu5Xlb+iFNjImIaz5YjOiSjtj60LIU3+XMZH2X9nblsj6SDnlUSyPpjTa/vcSHuYNiSQ 39S5GIFYY9HqN4p3EXqjEZ11NeD+CHKOG9VUQKAcCCR8tYlf+vtWTi4PsxoOj0delkqawh63DLe m2KBpOlvqFVBm0CFjUaVu7Ys5QOozNEAuDjORSPlLWK9516GOSLfPZG+gMWLLUTYIKAa1/s+wzV hGhAnYa5MVSm87EDQHNSrgn3CMxtkkkGcMe8oqNcxUTeSv55MIFtA8ZD0VaCx3lGgIPBiT7Hu4C y7ewvzeHZSNrXFebuOhesuFegfU2D1ViJB475zXH0KhAAJZtRUVDk/fIreqLRBzNX5acrb+Zk84 HlLdb3+ilo7SOJ9XVFV+U2L04aulKzzUVfI6C/e0nT3QBaK5Rl4oht56TgOsTUsjYitZW6hfEvI HB9AUOM4cwmntImsMgN+Y6jsDWJfoXehZWh/CLkTnWnooM/wo3QonlwPraysHDNVsxmbr1pTeb2 CVmArk1WBM+u5NOjoz9qhi2aEBNldzYoIZzQuSXxPGQZLAEAqEreh+suSVxSKgBBjun2LYz2TW4 I+UxCjQyPX2WXnA== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 This is a simple and straight forward cleanup series that aims to make the class structures in drm constant. This has been possible since 2023 [1]. [1]: https://lore.kernel.org/all/2023040248-customary-release-4aec@gregkh/ Signed-off-by: Ricardo B. Marliere --- Ricardo B. Marliere (4): drm/dp: make drm_dp_aux_dev_class constant drm/sysfs: make drm_class constant drm/fbdev/core: make fb_class constant dma-buf: heaps: make dma_heap_class constant drivers/dma-buf/dma-heap.c | 26 ++++++++++--------- drivers/gpu/drm/display/drm_dp_aux_dev.c | 22 ++++++++-------- drivers/gpu/drm/drm_internal.h | 2 +- drivers/gpu/drm/drm_privacy_screen.c | 2 +- drivers/gpu/drm/drm_sysfs.c | 44 ++++++++++++++------------------ drivers/video/fbdev/core/fb_internal.h | 2 +- drivers/video/fbdev/core/fbcon.c | 4 +-- drivers/video/fbdev/core/fbmem.c | 17 ++++++------ drivers/video/fbdev/core/fbsysfs.c | 4 +-- 9 files changed, 60 insertions(+), 63 deletions(-) --- base-commit: 4a0e7b3c37531aabddf6f144b83ae9b65ec809fd change-id: 20240305-class_cleanup-drm-591ca73b31f2 Best regards,