# Re: \[PATCH v2 3/5\] drm/modes: parse\_cmdline: Make mode-\>\*specified handling more uniform

- From: Maxime Ripard \<hidden\>
- Date: 2022-07-14 12:05:50 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2022/07/1859492
- Thread: https://ratatoskr.run/dri-devel/2022/07/1859352/t.md

```text
On Thu, Jul 14, 2022 at 11:04:08AM +0200, Geert Uytterhoeven wrote:
> The various mode->*specified flags are not handled in an uniform way:
> some flags are set by the corresponding drm_mode_parse_cmdline_*()
> function, some flags by the caller of the function, and some flags by
> both.
> 
> Make this uniform by making this the responsibility of the various
> parsing helpers, i.e.
>   - Move the setting of mode->specified from caller to callee,
>   - Drop the duplicate setting of mode->bpp_specified and
>     mode->refresh_specified from callers.
> 
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Reviewed-by: Hans de Goede <redacted>
> Acked-by: Thomas Zimmermann <tzimmermann@suse.de>

Acked-by: Maxime Ripard <redacted>

Maxime
```

## Attachments

- [signature.asc](https://ratatoskr.run/linux-fbdev/2022/07/1859492/attachment/0) (application/pgp-signature, 228 bytes)
