/* show function for portno called by cat or similar things  */
static ssize_t lcs_portno_show(struct device *dev, struct device_attribute *attr, char *buf)
/* show function for portno called by cat or similar things  */
static ssize_t lcs_portno_show(struct device *dev, struct device_attribute *attr, char *buf)
{
        struct lcs_card *card;
	card = dev_get_drvdata(dev);
        if (!card)
                return 0;
        return sprintf(buf, "%d\n", card->portno);
}