STRUCT MT2060_PLATFORM_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct mt2060_platform_data(9) ✨

Okay bestie, so this is a page from the Kernel API Manual and it's literally all about struct mt2060_platform_data β€” the platform data for the mt2060 driver. It's giving "niche tuner driver lore" and honestly? We're obsessed. Let's get into it πŸŽ€


🌸 NAME 🌸

struct mt2060_platform_data β€” Platform data for the mt2060 driver. That's it, that's the vibe πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

Here's the struct in all its glory, copied exactly because we do not mess with code, periodt:

struct mt2060_platform_data {
    u8 clock_out;
    u16 if1;
    unsigned int i2c_write_max:5;
    struct dvb_frontend *dvb_frontend;
 };

πŸ’– Members πŸ’–

Okay so let's meet the cast of this struct, one by one 🫢

  • clock_out β€” The clock output setting, bestie. The values are lowkey specific:
    • 0 = off
    • 1 = CLK/4
    • 2 = CLK/2
    • 3 = CLK/1

So like, pick your clock energy ✨

  • if1 β€” The first IF used, measured in [MHz]. And here's the tea: if you set it to 0, it defaults to 1220. Defaults are iconic like that πŸ’€
  • i2c_write_max β€” The maximum number of bytes the I2C adapter can write at once. If you throw a 0 at it, it defaults to the maximum. So 0 literally means "go off, queen, write as much as you can" πŸ‘‘
  • dvb_frontend β€” The DVB frontend. Just... the frontend. Main character energy, no further notes needed 🌈

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/media/tuners/mt2060.h β€” go read it, iykyk πŸ“–

Heads up bestie: this page pulled from ./drivers/media/tuners, dated October 2026, and the whole thing is titled struct mt2060_platform_data(9). Slay, bye πŸ’œβœ¨
πŸ“¦ where this page comes from