From nobody Fri Nov 22 01:30:02 2024 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B19191DED55; Mon, 18 Nov 2024 18:28:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731954512; cv=none; b=PM6JXKtxSFl/F9+vTntCZlJ+4SYNG4yWFCoAubqcCyTu1wuIyrYaOpj7dovstnOmkuLZiobbNVwcnZrcdRS9QGFuKl1dIkWS8ifSgxHyF7rhyoAx6eKbCgqXHQHKW8vKW7jdl1psUbDR/yOtH0mcJhbg1rvO7DwsDq/xoDwCkrI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731954512; c=relaxed/simple; bh=1nOox+NnkLPXHXT7FxAvq5Q+dBSkjutSPhQDbmS3n9g=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qdNTu6eGtSgXOLFNa2AP6s+Te2OdXrXaTXS+eLszmukUVEVsCk7VPrvvDK7zFHnI1YbKObTwc6RSn9n/EB7PSi6ZUpjzzzH0CHNitVEj83VVzPl+klH1mCuBjISjE97W34AKWkulXix6d7keU/9fl4m7ILF/BtlbOXSit7pDoSE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=cTc+c+NK; arc=none smtp.client-ip=217.70.183.196 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="cTc+c+NK" Received: by mail.gandi.net (Postfix) with ESMTPSA id 6508DE0009; Mon, 18 Nov 2024 18:28:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1731954507; 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: in-reply-to:in-reply-to:references:references; bh=I+uY8kKAdNig6XHWYB23un73hZMbuMCUmBzpFTZRlug=; b=cTc+c+NKfDE1WYxA0DXLMkbhWp9PUU0uMfbRcyBblaNO0GAPJ0Pb/JmaizZH5U4yIgIWWM I1ZMXhgjSw5FTEnMekLwx7hZRT1RouS5T0CcJfdNJ9nrVSP8jFv6zqFa5G+tedo+HRgJzi CHi+CNv5BeYdkn5U8GtxYZPAwxSm342spvw8I8PnmoD8TN1jVGzfFNEaccIKlsEGSZ7dBf ElKYUqDFRIJKP4j0jmlrCct9RkVbayX175+fQ80TiFdVRHyfFyL27OVyWrmbziP0vkBowK diIu4zvBT4WVjqGp7NgG28UJOTnax7qRPOIzgSXU4XGzLdiN5+E1qRgY3Vfq/Q== From: Louis Chauvet Date: Mon, 18 Nov 2024 19:28:16 +0100 Subject: [PATCH v14 1/9] drm/vkms: Code formatting Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241118-yuv-v14-1-2dbc2f1e222c@bootlin.com> References: <20241118-yuv-v14-0-2dbc2f1e222c@bootlin.com> In-Reply-To: <20241118-yuv-v14-0-2dbc2f1e222c@bootlin.com> To: Rodrigo Siqueira , Melissa Wen , =?utf-8?q?Ma=C3=ADra_Canal?= , Haneen Mohammed , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Jonathan Corbet , Louis Chauvet , Simona Vetter , Helen Koike , rdunlap@infradead.org, arthurgrillo@riseup.net, pekka.paalanen@haloniitty.fi, Simona Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, thomas.petazzoni@bootlin.com, jeremie.dautheribes@bootlin.com, miquel.raynal@bootlin.com, seanpaul@google.com, marcheu@google.com, nicolejadeyee@google.com, Pekka Paalanen , =?utf-8?q?Ma=C3=ADra_Canal?= , =?utf-8?q?Jos=C3=A9_Exp=C3=B3sito?= X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=5223; i=louis.chauvet@bootlin.com; h=from:subject:message-id; bh=1nOox+NnkLPXHXT7FxAvq5Q+dBSkjutSPhQDbmS3n9g=; b=owEBbQKS/ZANAwAIASCtLsZbECziAcsmYgBnO4dEvoUy2e0XlZfi9s7MigGG91+qu97CEB581 1/P3WeBgyOJAjMEAAEIAB0WIQRPj7g/vng8MQxQWQQgrS7GWxAs4gUCZzuHRAAKCRAgrS7GWxAs 4lHLD/9dqgXQsgMeLKzpQMYfqw3CesxtutKVVSgavQuh3qQmh+/L1U5Z+1kYv9TLPtTaF55xfHI wMQMNwlOVU2y8qqYWDkwSApm6cZz8OAIQHnuK6gTlVwCAvEEAYgAXHmKxazCP3dg0t9m25dgeWU dPu0o0xz7MSSj1MgZh81YFZG/xIZDtELdnhv3njxZi2WPZU4gO4ouYdVdl9Byd4xPXvlGe8n0rl jDMdNBT9D8xszRI200qd1txvbWgE3PLz5R/CKIhuk0tPgde6hGjHt4CpIqZmYOxLUGEZ23r/PWV lXN8xsZXbkaEFlkFgLi2HmgGfd7NfyA1jRFPXIxyffxoK17Tn9pEifgkoTyWllfy5fUnW1qwhh6 P1nRw8vyRx2OJKAlOOJUytEuGqlkp83bSCzh1kKsWF3AB6BYPRTg91+U4fH7471QLavwSn+Zg+E ra1gk6L6wayd8tZ7ucNl6pyBXMJPo3CaoJ5shD71mHEduFIUJ4s0UO5siezwsx5wsAyCUO+KI7F gcQlwx14Mv8thUxK6RZzVjiar/RGJudxPoIugG+Y1hlH8He38B2x3jDNgVUXMWDnoKs7Q1wlR7i vanwIEgKA8zSSYj0efTuzSyFzkfbz+Iq8y1z3vvjdJoljspMBFAo6WIhPK0U+yl6s5yB5ogPOZq 6DxMhDQHe5OIhnA== X-Developer-Key: i=louis.chauvet@bootlin.com; a=openpgp; fpr=8B7104AE9A272D6693F527F2EC1883F55E0B40A5 X-GND-Sasl: louis.chauvet@bootlin.com Few no-op changes to remove double spaces and fix wrong alignments. Reviewed-by: Pekka Paalanen Reviewed-by: Ma=C3=ADra Canal Reviewed-by: Jos=C3=A9 Exp=C3=B3sito Signed-off-by: Louis Chauvet --- drivers/gpu/drm/vkms/vkms_composer.c | 10 +++++----- drivers/gpu/drm/vkms/vkms_crtc.c | 6 ++---- drivers/gpu/drm/vkms/vkms_drv.c | 3 +-- drivers/gpu/drm/vkms/vkms_plane.c | 8 ++++---- 4 files changed, 12 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/vkms/vkms_composer.c b/drivers/gpu/drm/vkms/vk= ms_composer.c index 3f0977d746beebe20b05a1567dcfee4b673808d6..9d1ec06b986fd81949a09e67136= dd9bd5c76bf46 100644 --- a/drivers/gpu/drm/vkms/vkms_composer.c +++ b/drivers/gpu/drm/vkms/vkms_composer.c @@ -96,7 +96,7 @@ static u16 lerp_u16(u16 a, u16 b, s64 t) s64 a_fp =3D drm_int2fixp(a); s64 b_fp =3D drm_int2fixp(b); =20 - s64 delta =3D drm_fixp_mul(b_fp - a_fp, t); + s64 delta =3D drm_fixp_mul(b_fp - a_fp, t); =20 return drm_fixp2int(a_fp + delta); } @@ -309,8 +309,8 @@ static int compose_active_planes(struct vkms_writeback_= job *active_wb, void vkms_composer_worker(struct work_struct *work) { struct vkms_crtc_state *crtc_state =3D container_of(work, - struct vkms_crtc_state, - composer_work); + struct vkms_crtc_state, + composer_work); struct drm_crtc *crtc =3D crtc_state->base.crtc; struct vkms_writeback_job *active_wb =3D crtc_state->active_writeback; struct vkms_output *out =3D drm_crtc_to_vkms_output(crtc); @@ -335,7 +335,7 @@ void vkms_composer_worker(struct work_struct *work) crtc_state->gamma_lut.base =3D (struct drm_color_lut *)crtc->state->gamm= a_lut->data; crtc_state->gamma_lut.lut_length =3D crtc->state->gamma_lut->length / sizeof(struct drm_color_lut); - max_lut_index_fp =3D drm_int2fixp(crtc_state->gamma_lut.lut_length - 1); + max_lut_index_fp =3D drm_int2fixp(crtc_state->gamma_lut.lut_length - 1); crtc_state->gamma_lut.channel_value2index_ratio =3D drm_fixp_div(max_lut= _index_fp, u16_max_fp); =20 @@ -374,7 +374,7 @@ void vkms_composer_worker(struct work_struct *work) drm_crtc_add_crc_entry(crtc, true, frame_start++, &crc32); } =20 -static const char * const pipe_crc_sources[] =3D {"auto"}; +static const char *const pipe_crc_sources[] =3D { "auto" }; =20 const char *const *vkms_get_crc_sources(struct drm_crtc *crtc, size_t *count) diff --git a/drivers/gpu/drm/vkms/vkms_crtc.c b/drivers/gpu/drm/vkms/vkms_c= rtc.c index bbf080d32d2caad7dbb1198b63d875a216f969c0..28a57ae109fcc05af3fe74f9451= 8c462c09119e3 100644 --- a/drivers/gpu/drm/vkms/vkms_crtc.c +++ b/drivers/gpu/drm/vkms/vkms_crtc.c @@ -186,8 +186,7 @@ static int vkms_crtc_atomic_check(struct drm_crtc *crtc, return ret; =20 drm_for_each_plane_mask(plane, crtc->dev, crtc_state->plane_mask) { - plane_state =3D drm_atomic_get_existing_plane_state(crtc_state->state, - plane); + plane_state =3D drm_atomic_get_existing_plane_state(crtc_state->state, p= lane); WARN_ON(!plane_state); =20 if (!plane_state->visible) @@ -203,8 +202,7 @@ static int vkms_crtc_atomic_check(struct drm_crtc *crtc, =20 i =3D 0; drm_for_each_plane_mask(plane, crtc->dev, crtc_state->plane_mask) { - plane_state =3D drm_atomic_get_existing_plane_state(crtc_state->state, - plane); + plane_state =3D drm_atomic_get_existing_plane_state(crtc_state->state, p= lane); =20 if (!plane_state->visible) continue; diff --git a/drivers/gpu/drm/vkms/vkms_drv.c b/drivers/gpu/drm/vkms/vkms_dr= v.c index bab13943d8e0085bed85092d7bc8727d834768a9..f1ada7610376295a1b598f4a950= 5d41610b2daa2 100644 --- a/drivers/gpu/drm/vkms/vkms_drv.c +++ b/drivers/gpu/drm/vkms/vkms_drv.c @@ -82,8 +82,7 @@ static void vkms_atomic_commit_tail(struct drm_atomic_sta= te *old_state) drm_atomic_helper_wait_for_flip_done(dev, old_state); =20 for_each_old_crtc_in_state(old_state, crtc, old_crtc_state, i) { - struct vkms_crtc_state *vkms_state =3D - to_vkms_crtc_state(old_crtc_state); + struct vkms_crtc_state *vkms_state =3D to_vkms_crtc_state(old_crtc_state= ); =20 flush_work(&vkms_state->composer_work); } diff --git a/drivers/gpu/drm/vkms/vkms_plane.c b/drivers/gpu/drm/vkms/vkms_= plane.c index e5c625ab8e3e06cb95f468c59bc3b06ef85eab6f..5a8d295e65f28cac821e4e51916= c4dd242705780 100644 --- a/drivers/gpu/drm/vkms/vkms_plane.c +++ b/drivers/gpu/drm/vkms/vkms_plane.c @@ -117,10 +117,10 @@ static void vkms_plane_atomic_update(struct drm_plane= *plane, memcpy(&frame_info->map, &shadow_plane_state->data, sizeof(frame_info->ma= p)); drm_framebuffer_get(frame_info->fb); frame_info->rotation =3D drm_rotation_simplify(new_state->rotation, DRM_M= ODE_ROTATE_0 | - DRM_MODE_ROTATE_90 | - DRM_MODE_ROTATE_270 | - DRM_MODE_REFLECT_X | - DRM_MODE_REFLECT_Y); + DRM_MODE_ROTATE_90 | + DRM_MODE_ROTATE_270 | + DRM_MODE_REFLECT_X | + DRM_MODE_REFLECT_Y); =20 drm_rect_rotate(&frame_info->rotated, drm_rect_width(&frame_info->rotated= ), drm_rect_height(&frame_info->rotated), frame_info->rotation); --=20 2.47.0