Skip to contentSkip to conversation

drm/gma500: Remove unused mrst_clock_funcs

PATCH Applied [email protected] 2 participants 3 messages Mar 6, 2025 – Mar 7, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 drm/gma500: Remove unused mrst_clock_funcs

From: "Dr. David Alan Gilbert" <[email protected]>

The mrst_clock_funcs const was added in 2013 by
commit ac6113ebb70d ("drm/gma500/mrst: Add SDVO clock calculation") and commented as 'Not used yet'.

It's not been used since, so remove it.
The helper functions it points to are still used elsewhere.

---
v2
commit message fixed to use correct struct name, and add note about the functions used still being used.

 drivers/gpu/drm/gma500/oaktrail_crtc.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/gpu/drm/gma500/oaktrail_crtc.c +0 -7
index de8ccfe9890f..ea9b41af0867 100644
@@ -658,10 +658,3 @@ const struct drm_crtc_helper_funcs oaktrail_helper_funcs = {
 	.prepare = gma_crtc_prepare,
 	.commit = gma_crtc_commit,
 };
-
-/* Not used yet */
-const struct gma_clock_funcs mrst_clock_funcs = {
-	.clock = mrst_lvds_clock,
-	.limit = mrst_limit,
-	.pll_is_valid = gma_pll_is_valid,
-};
Signature · 1 line
2.48.1
maintainer Applied
#1 lore raw
Quoted 11 lines · On Thu, Mar 6, 2025 at 4:52 PM <[email protected]> wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

The mrst_clock_funcs const was added in 2013 by
commit ac6113ebb70d ("drm/gma500/mrst: Add SDVO clock calculation") and commented as 'Not used yet'.

It's not been used since, so remove it.
The helper functions it points to are still used elsewhere.

Applied to drm-misc-next
Thanks

Quoted 26 lines

---
v2
commit message fixed to use correct struct name, and add note about the functions used still being used.

 drivers/gpu/drm/gma500/oaktrail_crtc.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/gpu/drm/gma500/oaktrail_crtc.c +0 -8
index de8ccfe9890f..ea9b41af0867 100644
@@ -658,10 +658,3 @@ const struct drm_crtc_helper_funcs oaktrail_helper_funcs = {
        .prepare = gma_crtc_prepare,
        .commit = gma_crtc_commit,
 };
-
-/* Not used yet */
-const struct gma_clock_funcs mrst_clock_funcs = {
-       .clock = mrst_lvds_clock,
-       .limit = mrst_limit,
-       .pll_is_valid = gma_pll_is_valid,
-};
--

2.48.1

#2 lore raw
Quoted 8 lines · * Patrik Jakobsson ([email protected]) wrote:
Quoted 7 lines · On Thu, Mar 6, 2025 at 4:52 PM <[email protected]> wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

The mrst_clock_funcs const was added in 2013 by
commit ac6113ebb70d ("drm/gma500/mrst: Add SDVO clock calculation") and commented as 'Not used yet'.

Quoted 6 lines
Quoted 4 lines

It's not been used since, so remove it.
The helper functions it points to are still used elsewhere.

Applied to drm-misc-next

Thanks!

Dave

Quoted 29 lines

Thanks

Quoted 26 lines

---
v2
commit message fixed to use correct struct name, and add note about the functions used still being used.

 drivers/gpu/drm/gma500/oaktrail_crtc.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/gpu/drm/gma500/oaktrail_crtc.c +0 -8
index de8ccfe9890f..ea9b41af0867 100644
@@ -658,10 +658,3 @@ const struct drm_crtc_helper_funcs oaktrail_helper_funcs = {
        .prepare = gma_crtc_prepare,
        .commit = gma_crtc_commit,
 };
-
-/* Not used yet */
-const struct gma_clock_funcs mrst_clock_funcs = {
-       .clock = mrst_lvds_clock,
-       .limit = mrst_limit,
-       .pll_is_valid = gma_pll_is_valid,
-};
--

2.48.1

Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/