title: error: ‘struct tty_driver’ has no member named ‘ioctl’
body: <p>I found similar post but could not find solution so thought will post my question. I am working with a device driver. I know, the function below compiles successfully with 2.6 Kernel Headers and now trying to compile it with "3.2.0-4-686-pae" (Debian). I am getting following error messages, </p>
  
  <pre><code> error: ‘struct tty_driver’ has no member named ‘ioctl’
   error: ‘struct vc_data’ has no member named ‘vc_tty'
  </code></pre>
  
  <p>I checked "tty_driver" in tty_driver.h (which is included in tty.h) and found that </p>
  
  <pre><code>int  (*ioctl)(struct tty_struct *tty, struct file * file,
              unsigned int cmd, unsigned long arg); 
  </code></pre>
  
  <p>is defined but not sure why I am getting this error.</p>
  
  <p>Also, I could not find 'vc_tty' included in the 'vc_data' in "console_struct.h" Can anyone please let me know what updates need to be made in order to make it work with "3.2.0-4-686-pae"?</p>
  
  <pre><code>#include &lt;linux/tty.h&gt;
  #include &lt;linux/console_struct.h&gt;
  
  struct tty_driver *my_driver;
  
  static void my_func(unsigned long ptr)
  {
      /* Some code */   
  
      (my_driver-&gt;ioctl) (vc_cons[fg_console].d-&gt;vc_tty, NULL, KDSETLED,
                  *pstatus);
  
      /* Some more code */
  }
  </code></pre>
  
  <p>I have not posted the whole code here but thought will post if needed. Please let me know if you need more information.</p>