--- drivers/cdrom/cdrom.c~ Mon Jun 12 18:56:14 2000 +++ drivers/cdrom/cdrom.c Mon Jun 12 18:56:50 2000 @@ -297,6 +297,10 @@ #define IOCTL_OUT(arg, type, out) \ copy_to_user_ret((type *) arg, &out, sizeof out, -EFAULT) +/* The (cdo->capability & ~cdi->mask & CDC_XXX) construct was used in + a lot of places. This macro makes the code more clear. */ +#define CDROM_CAN(type) (cdi->ops->capability & ~cdi->mask & (type)) + /* used in the audio ioctls */ #define CHECKAUDIO if ((ret=check_for_audio_disc(cdi, cdo))) return ret